pub struct DoipCodec {}
Expand description
A simple Decoder and Encoder implementation for Diagnostics over Internet Protocol.
Can be used independently via encode
and decode
methods, however is best
utilised during.
Trait Implementations§
Source§impl Decoder for DoipCodec
impl Decoder for DoipCodec
Source§type Item = DoipMessage
type Item = DoipMessage
The type of decoded frames.
Source§fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>>
fn decode(&mut self, src: &mut BytesMut) -> Result<Option<Self::Item>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Auto Trait Implementations§
impl Freeze for DoipCodec
impl RefUnwindSafe for DoipCodec
impl Send for DoipCodec
impl Sync for DoipCodec
impl Unpin for DoipCodec
impl UnwindSafe for DoipCodec
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