pub struct FrameCodec { /* private fields */ }Expand description
Frame codec for encoding and decoding frames
Implementations§
Source§impl FrameCodec
impl FrameCodec
Sourcepub fn with_max_payload_size(max_payload_size: u32) -> Self
pub fn with_max_payload_size(max_payload_size: u32) -> Self
Create a new frame codec with custom max payload size
Trait Implementations§
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