Struct bluerobotics_ping::codec::PingCodec
source · pub struct PingCodec { /* private fields */ }Implementations§
Trait Implementations§
source§impl Decoder for PingCodec
impl Decoder for PingCodec
§type Item = ProtocolMessage
type Item = ProtocolMessage
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 PingCodec
impl RefUnwindSafe for PingCodec
impl Send for PingCodec
impl Sync for PingCodec
impl Unpin for PingCodec
impl UnwindSafe for PingCodec
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