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§

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§