pub struct PlainCodec;
Expand description
Represents a codec that does not alter the frame (synonymous with “plain text”)
Implementations§
Source§impl PlainCodec
impl PlainCodec
Trait Implementations§
Source§impl Clone for PlainCodec
impl Clone for PlainCodec
Source§fn clone(&self) -> PlainCodec
fn clone(&self) -> PlainCodec
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Codec for PlainCodec
impl Codec for PlainCodec
Source§impl Debug for PlainCodec
impl Debug for PlainCodec
Source§impl Default for PlainCodec
impl Default for PlainCodec
Source§fn default() -> PlainCodec
fn default() -> PlainCodec
Returns the “default value” for a type. Read more
Source§impl PartialEq for PlainCodec
impl PartialEq for PlainCodec
impl Copy for PlainCodec
impl Eq for PlainCodec
impl StructuralPartialEq for PlainCodec
Auto Trait Implementations§
impl Freeze for PlainCodec
impl RefUnwindSafe for PlainCodec
impl Send for PlainCodec
impl Sync for PlainCodec
impl Unpin for PlainCodec
impl UnwindSafe for PlainCodec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<C> CodecExt for Cwhere
C: Codec,
impl<C> CodecExt for Cwhere
C: Codec,
Source§fn chain<T>(self, codec: T) -> ChainCodec<C, T>
fn chain<T>(self, codec: T) -> ChainCodec<C, T>
Chains this codec with another codec