Struct tokio_yamux::frame::FrameCodec
source · pub struct FrameCodec { /* private fields */ }
Expand description
The frame decoder/encoder
Implementations§
source§impl FrameCodec
impl FrameCodec
sourcepub fn max_frame_size(self, size: u32) -> Self
pub fn max_frame_size(self, size: u32) -> Self
Set max frame size
Trait Implementations§
source§impl Decoder for FrameCodec
impl Decoder for FrameCodec
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 FrameCodec
impl Default for FrameCodec
Auto Trait Implementations§
impl RefUnwindSafe for FrameCodec
impl Send for FrameCodec
impl Sync for FrameCodec
impl Unpin 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