Trait fidl::encoding::ProxyChannelFor
source · pub trait ProxyChannelFor<D: ResourceDialect>: Debug + ChannelLike {
type Boxed: ProxyChannelBox<D>;
type Error: Into<TransportError>;
type HandleDisposition: HandleDispositionFor<D>;
// Required methods
fn boxed(self) -> Self::Boxed;
fn write_etc(
&self,
bytes: &[u8],
handles: &mut [Self::HandleDisposition],
) -> Result<(), Option<Self::Error>>;
}
Expand description
Channel used for proxies in a particular dialect.
Required Associated Types§
sourcetype Boxed: ProxyChannelBox<D>
type Boxed: ProxyChannelBox<D>
Box we put around a ProxyChannel
when using it within a client.
sourcetype Error: Into<TransportError>
type Error: Into<TransportError>
Type of the errors we get from this proxy channel.
sourcetype HandleDisposition: HandleDispositionFor<D>
type HandleDisposition: HandleDispositionFor<D>
Handle disposition used in this dialect.
This is for sending handles, and includes the intended type/rights.