Trait thrift::transport::TReadTransportFactory

source ·
pub trait TReadTransportFactory {
    // Required method
    fn create(
        &self,
        channel: Box<dyn Read + Send>,
    ) -> Box<dyn TReadTransport + Send>;
}
Expand description

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

Required Methods§

source

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

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

Implementations on Foreign Types§

source§

impl<T> TReadTransportFactory for Box<T>

source§

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

Implementors§