Struct tokio_thrift::tokio::ThriftCodec
[−]
[src]
pub struct ThriftCodec<In, Out>(_, _);
Methods
impl<In, Out> ThriftCodec<In, Out>
[src]
fn new() -> Self
Trait Implementations
impl<In: Deserialize, Out: Serialize> Codec for ThriftCodec<In, Out>
[src]
type In = In
Deprecated
: moved to the tokio-io
crate
The type of decoded frames.
type Out = Out
Deprecated
: moved to the tokio-io
crate
The type of frames to be encoded.
fn decode(&mut self, buf: &mut EasyBuf) -> Result<Option<Self::In>, Error>
Deprecated
: moved to the tokio-io
crate
Attempts to decode a frame from the provided buffer of bytes. Read more
fn encode(&mut self, msg: Self::Out, buf: &mut Vec<u8>) -> Result<()>
Deprecated
: moved to the tokio-io
crate
Encodes a frame into the buffer provided. Read more
fn decode_eof(&mut self, buf: &mut EasyBuf) -> Result<Self::In, Error>
Deprecated
: moved to the tokio-io
crate
A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more