pub struct ChannelOffloadExtSynchronousProxy { /* private fields */ }Implementations§
Source§impl ChannelOffloadExtSynchronousProxy
impl ChannelOffloadExtSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ChannelOffloadExtEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ChannelOffloadExtEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn start_offload(
&self,
payload: &ChannelOffloadExtStartOffloadRequest,
___deadline: MonotonicInstant,
) -> Result<ChannelOffloadExtStartOffloadResult, Error>
pub fn start_offload( &self, payload: &ChannelOffloadExtStartOffloadRequest, ___deadline: MonotonicInstant, ) -> Result<ChannelOffloadExtStartOffloadResult, Error>
StartOffload MUST be called before Channel.Receive(). The offloaded channel will have 0 RX credits given to the peer to prevent the peer from sending data until the offload processor is ready. This method may be called a maximum of one time.
The following errors may be returned:
- error
BAD_STATE: Channel.Receive() has already been called or StartOffload() has already been called. - error
INTERNAL: An internal error occurred and the channel could not be offloaded.
Trait Implementations§
Source§impl From<Channel> for ChannelOffloadExtSynchronousProxy
Available on Fuchsia only.
impl From<Channel> for ChannelOffloadExtSynchronousProxy
Available on Fuchsia only.
Source§impl From<ChannelOffloadExtSynchronousProxy> for NullableHandle
Available on Fuchsia only.
impl From<ChannelOffloadExtSynchronousProxy> for NullableHandle
Available on Fuchsia only.
Source§fn from(value: ChannelOffloadExtSynchronousProxy) -> Self
fn from(value: ChannelOffloadExtSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for ChannelOffloadExtSynchronousProxy
Available on Fuchsia only.
impl FromClient for ChannelOffloadExtSynchronousProxy
Available on Fuchsia only.
Source§type Protocol = ChannelOffloadExtMarker
type Protocol = ChannelOffloadExtMarker
The protocol.
Source§fn from_client(value: ClientEnd<ChannelOffloadExtMarker>) -> Self
fn from_client(value: ClientEnd<ChannelOffloadExtMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for ChannelOffloadExtSynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for ChannelOffloadExtSynchronousProxy
Available on Fuchsia only.
Source§type Proxy = ChannelOffloadExtProxy
type Proxy = ChannelOffloadExtProxy
The async proxy for the same protocol.
Source§type Protocol = ChannelOffloadExtMarker
type Protocol = ChannelOffloadExtMarker
The protocol which this
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for ChannelOffloadExtSynchronousProxy
impl RefUnwindSafe for ChannelOffloadExtSynchronousProxy
impl Send for ChannelOffloadExtSynchronousProxy
impl Sync for ChannelOffloadExtSynchronousProxy
impl Unpin for ChannelOffloadExtSynchronousProxy
impl UnsafeUnpin for ChannelOffloadExtSynchronousProxy
impl UnwindSafe for ChannelOffloadExtSynchronousProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more