[−][src]Struct tokio_serde::formats::Cbor
This is supported on crate feature
cbor
only.CBOR codec using serde_cbor crate.
Trait Implementations
impl<Item, SinkItem> Debug for Cbor<Item, SinkItem>
[src]
impl<Item, SinkItem> Default for Cbor<Item, SinkItem>
[src]
impl<Item, SinkItem> Deserializer<Item> for Cbor<Item, SinkItem> where
Item: Deserialize<'a>,
[src]
Item: Deserialize<'a>,
type Error = Error
pub fn deserialize(
self: Pin<&mut Self>,
src: &BytesMut
) -> Result<Item, Self::Error>
[src]
self: Pin<&mut Self>,
src: &BytesMut
) -> Result<Item, Self::Error>
impl<Item, SinkItem> Serializer<SinkItem> for Cbor<Item, SinkItem> where
SinkItem: Serialize,
[src]
SinkItem: Serialize,
Auto Trait Implementations
impl<Item, SinkItem> RefUnwindSafe for Cbor<Item, SinkItem> where
Item: RefUnwindSafe,
SinkItem: RefUnwindSafe,
[src]
Item: RefUnwindSafe,
SinkItem: RefUnwindSafe,
impl<Item, SinkItem> Send for Cbor<Item, SinkItem> where
Item: Send,
SinkItem: Send,
[src]
Item: Send,
SinkItem: Send,
impl<Item, SinkItem> Sync for Cbor<Item, SinkItem> where
Item: Sync,
SinkItem: Sync,
[src]
Item: Sync,
SinkItem: Sync,
impl<Item, SinkItem> Unpin for Cbor<Item, SinkItem> where
Item: Unpin,
SinkItem: Unpin,
[src]
Item: Unpin,
SinkItem: Unpin,
impl<Item, SinkItem> UnwindSafe for Cbor<Item, SinkItem> where
Item: UnwindSafe,
SinkItem: UnwindSafe,
[src]
Item: UnwindSafe,
SinkItem: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,