pub struct BytesCodec;Expand description
Identity codec for arbitrary binary payloads.
Trait Implementations§
Source§impl Clone for BytesCodec
impl Clone for BytesCodec
Source§fn clone(&self) -> BytesCodec
fn clone(&self) -> BytesCodec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BytesCodec
Source§impl Debug for BytesCodec
impl Debug for BytesCodec
Source§impl Default for BytesCodec
impl Default for BytesCodec
Source§fn default() -> BytesCodec
fn default() -> BytesCodec
Returns the “default value” for a type. Read more
Source§impl DntCodec for BytesCodec
impl DntCodec for BytesCodec
Source§fn matches_codec_id(&self, codec_id: &CodecId) -> bool
fn matches_codec_id(&self, codec_id: &CodecId) -> bool
Returns true when this codec can decode the authenticated identifier.
Source§fn encode(&self, value: &[u8]) -> Result<Vec<u8>, CodecError>
fn encode(&self, value: &[u8]) -> Result<Vec<u8>, CodecError>
Encodes caller-owned bytes before sealing.
Source§fn decode(&self, payload: &[u8]) -> Result<Vec<u8>, CodecError>
fn decode(&self, payload: &[u8]) -> Result<Vec<u8>, CodecError>
Decodes authenticated plaintext bytes after opening.
Source§fn decode_owned(&self, payload: Vec<u8>) -> Result<Vec<u8>, CodecError>
fn decode_owned(&self, payload: Vec<u8>) -> Result<Vec<u8>, CodecError>
Decodes an owned authenticated payload after opening. Read more
Auto Trait Implementations§
impl Freeze for BytesCodec
impl RefUnwindSafe for BytesCodec
impl Send for BytesCodec
impl Sync for BytesCodec
impl Unpin for BytesCodec
impl UnsafeUnpin 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