pub struct AmiCodec { /* private fields */ }Expand description
codec for AMI’s line-based protocol
Implementations§
Trait Implementations§
Source§impl Decoder for AmiCodec
impl Decoder for AmiCodec
Source§type Item = RawAmiMessage
type Item = RawAmiMessage
The type of decoded frames.
Source§fn decode(
&mut self,
src: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, src: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for AmiCodec
impl RefUnwindSafe for AmiCodec
impl Send for AmiCodec
impl Sync for AmiCodec
impl Unpin for AmiCodec
impl UnsafeUnpin for AmiCodec
impl UnwindSafe for AmiCodec
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