pub trait TInputProtocolFactory {
    fn create(
        &self,
        transport: Box<dyn TReadTransport + Send>
    ) -> Box<dyn TInputProtocol + Send>; }
Expand description

Helper type used by servers to create TInputProtocol instances for accepted client connections.

Examples

Create a TInputProtocolFactory and use it to create a TInputProtocol.

use thrift::protocol::{TBinaryInputProtocolFactory, TInputProtocolFactory};
use thrift::transport::TTcpChannel;

let mut channel = TTcpChannel::new();
channel.open("127.0.0.1:9090").unwrap();

let factory = TBinaryInputProtocolFactory::new();
let protocol = factory.create(Box::new(channel));

Required Methods

Implementations on Foreign Types

Implementors