pub struct FrameCodec { /* private fields */ }Expand description
Length-delimited codec for SDK–Gateway Frame values.
The configured limit applies to the frame payload and excludes the fixed wire header.
Implementations§
Trait Implementations§
Source§impl Clone for FrameCodec
impl Clone for FrameCodec
Source§impl Debug for FrameCodec
impl Debug for FrameCodec
Source§impl Decoder for FrameCodec
impl Decoder for FrameCodec
Source§type Error = ProtocolError
type Error = ProtocolError
The type of unrecoverable frame decoding errors. Read more
Source§fn decode(
&mut self,
source: &mut BytesMut,
) -> Result<Option<Self::Item>, Self::Error>
fn decode( &mut self, source: &mut BytesMut, ) -> Result<Option<Self::Item>, Self::Error>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for FrameCodec
impl Default for FrameCodec
Auto Trait Implementations§
impl Freeze for FrameCodec
impl RefUnwindSafe for FrameCodec
impl Send for FrameCodec
impl Sync for FrameCodec
impl Unpin for FrameCodec
impl UnsafeUnpin for FrameCodec
impl UnwindSafe for FrameCodec
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