pub trait TWriteTransportFactory {
    // Required method
    fn create(
        &self,
        channel: Box<dyn Write + Send>
    ) -> Box<dyn TWriteTransport + Send>;
}
Expand description

Helper type used by a server to create TWriteTransport instances for accepted client connections.

Required Methods§

source

fn create( &self, channel: Box<dyn Write + Send> ) -> Box<dyn TWriteTransport + Send>

Create a TTransport that wraps a channel over which bytes are to be sent.

Implementations on Foreign Types§

source§

impl<T> TWriteTransportFactory for Box<T>where T: TWriteTransportFactory + ?Sized,

source§

fn create( &self, channel: Box<dyn Write + Send> ) -> Box<dyn TWriteTransport + Send>

Implementors§