[][src]Trait thrift::transport::TWriteTransportFactory

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

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

Required methods

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.

Loading content...

Implementations on Foreign Types

impl<T: ?Sized> TWriteTransportFactory for Box<T> where
    T: TWriteTransportFactory
[src]

Loading content...

Implementors

impl TWriteTransportFactory for TBufferedWriteTransportFactory[src]

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

Create a TBufferedWriteTransport.

impl TWriteTransportFactory for TFramedWriteTransportFactory[src]

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

Create a TFramedWriteTransport.

Loading content...