pub struct SbeFrameCodec { /* private fields */ }Expand description
Simple length-prefixed framing codec for SBE messages.
Implementations§
Source§impl SbeFrameCodec
impl SbeFrameCodec
Sourcepub fn with_max_frame_size(max_frame_size: usize) -> Self
pub fn with_max_frame_size(max_frame_size: usize) -> Self
Creates a new frame codec with custom max frame size.
Trait Implementations§
Source§impl Decoder for SbeFrameCodec
impl Decoder for SbeFrameCodec
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
Source§impl Default for SbeFrameCodec
impl Default for SbeFrameCodec
Auto Trait Implementations§
impl Freeze for SbeFrameCodec
impl RefUnwindSafe for SbeFrameCodec
impl Send for SbeFrameCodec
impl Sync for SbeFrameCodec
impl Unpin for SbeFrameCodec
impl UnsafeUnpin for SbeFrameCodec
impl UnwindSafe for SbeFrameCodec
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