pub struct DefaultFuchsiaResourceDialect;
Expand description
The default ResourceDialect
. Encodes everything into a channel
MessageBuf for sending via channels between Fuchsia services.
Trait Implementations§
Source§impl Clone for DefaultFuchsiaResourceDialect
impl Clone for DefaultFuchsiaResourceDialect
Source§fn clone(&self) -> DefaultFuchsiaResourceDialect
fn clone(&self) -> DefaultFuchsiaResourceDialect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for DefaultFuchsiaResourceDialect
impl Default for DefaultFuchsiaResourceDialect
Source§fn default() -> DefaultFuchsiaResourceDialect
fn default() -> DefaultFuchsiaResourceDialect
Returns the “default value” for a type. Read more
Source§impl HandleDispositionFor<DefaultFuchsiaResourceDialect> for HandleDisposition<'static>
impl HandleDispositionFor<DefaultFuchsiaResourceDialect> for HandleDisposition<'static>
Source§fn from_handle(
handle: Handle,
object_type: ObjectType,
rights: Rights,
) -> HandleDisposition<'static>
fn from_handle( handle: Handle, object_type: ObjectType, rights: Rights, ) -> HandleDisposition<'static>
Wrap a handle in a handle disposition.
Source§impl HandleFor<DefaultFuchsiaResourceDialect> for Handle
impl HandleFor<DefaultFuchsiaResourceDialect> for Handle
Source§type HandleInfo = HandleInfo
type HandleInfo = HandleInfo
Handle info used in this dialect. Read more
Source§fn invalid() -> Handle
fn invalid() -> Handle
Produce an invalid version of
Handle
used as a place filler when
we remove handles from an array.Source§fn is_invalid(&self) -> bool
fn is_invalid(&self) -> bool
Check whether a handle is invalid.
Source§impl MessageBufFor<DefaultFuchsiaResourceDialect> for MessageBufEtc
impl MessageBufFor<DefaultFuchsiaResourceDialect> for MessageBufEtc
Source§fn new() -> MessageBufEtc
fn new() -> MessageBufEtc
Create a new message buffer.
Source§fn shrink_bytes_to_fit(&mut self)
fn shrink_bytes_to_fit(&mut self)
Discard any allocated-but-unused space in the byte portion of this buffer.
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.
Source§impl ProxyChannelFor<DefaultFuchsiaResourceDialect> for Channel
impl ProxyChannelFor<DefaultFuchsiaResourceDialect> for Channel
Source§type Boxed = FuchsiaProxyBox
type Boxed = FuchsiaProxyBox
Box we put around a
ProxyChannel
when using it within a client.Source§type HandleDisposition = HandleDisposition<'static>
type HandleDisposition = HandleDisposition<'static>
Handle disposition used in this dialect. Read more
Source§fn boxed(self) -> FuchsiaProxyBox
fn boxed(self) -> FuchsiaProxyBox
Construct a new box around a proxy channel.
Source§impl ResourceDialect for DefaultFuchsiaResourceDialect
impl ResourceDialect for DefaultFuchsiaResourceDialect
Source§type MessageBufEtc = MessageBufEtc
type MessageBufEtc = MessageBufEtc
Message buffer type used in this dialect.
Source§type ProxyChannel = Channel
type ProxyChannel = Channel
Channel type used for proxies in this dialect.
Source§fn with_tls_buf<R>(
f: impl FnOnce(&mut TlsBuf<DefaultFuchsiaResourceDialect>) -> R,
) -> R
fn with_tls_buf<R>( f: impl FnOnce(&mut TlsBuf<DefaultFuchsiaResourceDialect>) -> R, ) -> R
Get a thread-local common instance of
TlsBuf
impl Copy for DefaultFuchsiaResourceDialect
Auto Trait Implementations§
impl Freeze for DefaultFuchsiaResourceDialect
impl RefUnwindSafe for DefaultFuchsiaResourceDialect
impl Send for DefaultFuchsiaResourceDialect
impl Sync for DefaultFuchsiaResourceDialect
impl Unpin for DefaultFuchsiaResourceDialect
impl UnwindSafe for DefaultFuchsiaResourceDialect
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