Struct tk_opc::OPCCodec
[−]
[src]
pub struct OPCCodec;
Trait Implementations
impl Decoder for OPCCodec
[src]
type Item = OpcMessage
The type of decoded frames.
type Error = Error
The type of unrecoverable frame decoding errors. Read more
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<OpcMessage>>
Attempts to decode a frame from the provided buffer of bytes. Read more
fn decode_eof(&mut self, buf: &mut BytesMut) -> Result<Option<OpcMessage>>
A default method available to be called when there are no more bytes available to be read from the underlying I/O. Read more