Trait ProxyChannelFor

pub trait ProxyChannelFor<D>: Debug + ChannelLike
where D: ResourceDialect,
{ 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§

type Boxed: ProxyChannelBox<D>

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

type Error: Into<TransportError>

Type of the errors we get from this proxy channel.

type HandleDisposition: HandleDispositionFor<D>

Handle disposition used in this dialect.

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

Required Methods§

fn boxed(self) -> Self::Boxed

Construct a new box around a proxy channel.

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

Write data to a Proxy channel

Implementors§