[][src]Trait thrift::transport::TReadTransportFactory

pub trait TReadTransportFactory {
    fn create(
        &self,
        channel: Box<dyn Read + Send>
    ) -> Box<dyn TReadTransport + Send>; }

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

Required methods

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.

Loading content...

Implementations on Foreign Types

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

Loading content...

Implementors

impl TReadTransportFactory for TBufferedReadTransportFactory[src]

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

Create a TBufferedReadTransport.

impl TReadTransportFactory for TFramedReadTransportFactory[src]

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

Create a TFramedReadTransport.

Loading content...