Struct fidl::encoding::FuchsiaProxyBox
source · pub struct FuchsiaProxyBox(/* private fields */);
Expand description
Box around an async channel. Needed to implement ResourceDialect
for
DefaultFuchsiaResourceDialect
but not so useful for that case.
Implementations§
Trait Implementations§
source§impl Debug for FuchsiaProxyBox
impl Debug for FuchsiaProxyBox
source§impl ProxyChannelBox<DefaultFuchsiaResourceDialect> for FuchsiaProxyBox
impl ProxyChannelBox<DefaultFuchsiaResourceDialect> for FuchsiaProxyBox
source§fn write_etc(
&self,
bytes: &[u8],
handles: &mut [HandleDisposition<'static>],
) -> Result<(), Option<Status>>
fn write_etc( &self, bytes: &[u8], handles: &mut [HandleDisposition<'static>], ) -> Result<(), Option<Status>>
Write data to a Proxy channel
source§fn recv_etc_from(
&self,
ctx: &mut Context<'_>,
buf: &mut MessageBufEtc,
) -> Poll<Result<(), Option<Status>>>
fn recv_etc_from( &self, ctx: &mut Context<'_>, buf: &mut MessageBufEtc, ) -> Poll<Result<(), Option<Status>>>
Receives a message on the channel and registers this
Channel
as
needing a read on receiving a io::std::ErrorKind::WouldBlock
.source§fn unbox(
self,
) -> <DefaultFuchsiaResourceDialect as ResourceDialect>::ProxyChannel
fn unbox( self, ) -> <DefaultFuchsiaResourceDialect as ResourceDialect>::ProxyChannel
Unbox this channel
source§fn as_channel(
&self,
) -> &<DefaultFuchsiaResourceDialect as ResourceDialect>::ProxyChannel
fn as_channel( &self, ) -> &<DefaultFuchsiaResourceDialect as ResourceDialect>::ProxyChannel
Get a reference to the boxed channel.
Auto Trait Implementations§
impl Freeze for FuchsiaProxyBox
impl !RefUnwindSafe for FuchsiaProxyBox
impl Send for FuchsiaProxyBox
impl Sync for FuchsiaProxyBox
impl Unpin for FuchsiaProxyBox
impl !UnwindSafe for FuchsiaProxyBox
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