pub struct FrameCodec { /* private fields */ }Implementations§
Source§impl FrameCodec
impl FrameCodec
pub fn new() -> Self
pub fn push_bytes(&mut self, bytes: &[u8]) -> Result<Vec<Frame>, ProtocolError>
pub fn buffered_len(&self) -> usize
Trait Implementations§
Source§impl Debug for FrameCodec
impl Debug for FrameCodec
Source§impl Default for FrameCodec
impl Default for FrameCodec
Source§fn default() -> FrameCodec
fn default() -> FrameCodec
Returns the “default value” for a type. Read more
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