pub struct StreamCodec { /* private fields */ }
Expand description
Stream codec for streaming protocols (ipc, tcp)
Implementations§
Source§impl StreamCodec
impl StreamCodec
Trait Implementations§
Source§impl Debug for StreamCodec
impl Debug for StreamCodec
Source§impl Decoder for StreamCodec
impl Decoder for StreamCodec
Source§fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>>
fn decode(&mut self, buf: &mut BytesMut) -> Result<Option<Self::Item>>
Attempts to decode a frame from the provided buffer of bytes. Read more
Source§impl Default for StreamCodec
impl Default for StreamCodec
Source§fn default() -> StreamCodec
fn default() -> StreamCodec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StreamCodec
impl RefUnwindSafe for StreamCodec
impl Send for StreamCodec
impl Sync for StreamCodec
impl Unpin for StreamCodec
impl UnwindSafe for StreamCodec
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