FromReadTransport

Trait FromReadTransport 

Source
pub trait FromReadTransport: TInputProtocol {
    type ReadTransport: TReadTransport;

    // Required method
    fn from_read_transport(r_tran: Self::ReadTransport) -> Self;
}
Expand description

Create self from a TReadTransport

Required Associated Types§

Required Methods§

Source

fn from_read_transport(r_tran: Self::ReadTransport) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<RT: TReadTransport> FromReadTransport for TBinaryInputProtocol<RT>

Source§

type ReadTransport = RT

Source§

fn from_read_transport(r_tran: RT) -> Self

Source§

impl<RT: TReadTransport> FromReadTransport for TCompactInputProtocol<RT>

Source§

type ReadTransport = RT

Source§

fn from_read_transport(r_tran: RT) -> Self

Implementors§