Struct clacks_transport::TelegramCodec
[−]
[src]
pub struct TelegramCodec { /* fields omitted */ }
Methods
impl TelegramCodec
[src]
pub fn new() -> TelegramCodec
[src]
Trait Implementations
impl Decoder for TelegramCodec
[src]
type Item = Vec<u8>
The type of decoded frames.
type Error = Error
The type of unrecoverable frame decoding errors. Read more
fn decode(&mut self, input: &mut BytesMut) -> Result<Option<Vec<u8>>>
[src]
Attempts to decode a frame from the provided buffer of bytes. Read more
fn decode_eof(
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
[src]
&mut self,
buf: &mut BytesMut
) -> Result<Option<Self::Item>, Self::Error>
A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more