fidl::encoding

Trait 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§

Source

type Boxed: ProxyChannelBox<D>

Box we put around a ProxyChannel when using it within a client.

Source

type Error: Into<TransportError>

Type of the errors we get from this proxy channel.

Source

type HandleDisposition: HandleDispositionFor<D>

Handle disposition used in this dialect.

This is for sending handles, and includes the intended type/rights.

Required Methods§

Source

fn boxed(self) -> Self::Boxed

Construct a new box around a proxy channel.

Source

fn write_etc( &self, bytes: &[u8], handles: &mut [Self::HandleDisposition], ) -> Result<(), Option<Self::Error>>

Write data to a Proxy channel

Implementors§