Struct rust_p2p_core::pipe::tcp_pipe::BytesCodec
source · pub struct BytesCodec;Expand description
The default byte encoder/decoder; using this is no different from directly using a TCP stream.
Trait Implementations§
source§impl Decoder for BytesCodec
impl Decoder for BytesCodec
source§impl Encoder for BytesCodec
impl Encoder for BytesCodec
Auto Trait Implementations§
impl Freeze for BytesCodec
impl RefUnwindSafe for BytesCodec
impl Send for BytesCodec
impl Sync for BytesCodec
impl Unpin for BytesCodec
impl UnwindSafe for BytesCodec
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