Function tarpc::serde_transport::new[][src]

pub fn new<S, Item, SinkItem, Codec>(
    framed_io: Framed<S, LengthDelimitedCodec>,
    codec: Codec
) -> Transport<S, Item, SinkItem, Codec> where
    S: AsyncWrite + AsyncRead,
    Item: for<'de> Deserialize<'de>,
    SinkItem: Serialize,
    Codec: Serializer<SinkItem> + Deserializer<Item>, 

Constructs a new transport from a framed transport and a serialization codec.