pub struct OPCCodec;Trait Implementations§
Source§impl Decoder for OPCCodec
impl Decoder for OPCCodec
Source§type Item = OpcMessage
type Item = OpcMessage
The type of decoded frames.
Source§fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<OpcMessage>>
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<OpcMessage>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§fn decode_eof(&mut self, buf: &mut BytesMut) -> Result<Option<OpcMessage>>
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
Auto Trait Implementations§
impl Freeze for OPCCodec
impl RefUnwindSafe for OPCCodec
impl Send for OPCCodec
impl Sync for OPCCodec
impl Unpin for OPCCodec
impl UnwindSafe for OPCCodec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more