pub struct CborSerializer<T> { /* private fields */ }Expand description
CBOR serializer
Trait Implementations§
Source§impl<T: Debug> Debug for CborSerializer<T>
impl<T: Debug> Debug for CborSerializer<T>
Source§impl<T> TypedSerialized for CborSerializer<T>
impl<T> TypedSerialized for CborSerializer<T>
Source§fn serialize(v: &Self::T) -> Result<Self, Error>
fn serialize(v: &Self::T) -> Result<Self, Error>
§Failures
- SerializationError when failed to serialize message.
Source§fn deserialize<'de>(&'de self) -> Result<Self::T, Error>where
Self::T: Deserialize<'de>,
fn deserialize<'de>(&'de self) -> Result<Self::T, Error>where
Self::T: Deserialize<'de>,
§Failures
- DeserializationError when failed to deserialize decrypted message.
Auto Trait Implementations§
impl<T> Freeze for CborSerializer<T>
impl<T> RefUnwindSafe for CborSerializer<T>where
T: RefUnwindSafe,
impl<T> Send for CborSerializer<T>where
T: Send,
impl<T> Sync for CborSerializer<T>where
T: Sync,
impl<T> Unpin for CborSerializer<T>where
T: Unpin,
impl<T> UnwindSafe for CborSerializer<T>where
T: UnwindSafe,
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