pub struct FrameCodec {}Expand description
Codec for streaming frame encoding/decoding.
Implementations§
Source§impl FrameCodec
impl FrameCodec
Sourcepub fn decode_from(
&self,
buf: &mut BytesMut,
) -> Result<Option<Frame>, ProtocolError>
pub fn decode_from( &self, buf: &mut BytesMut, ) -> Result<Option<Frame>, ProtocolError>
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 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