[][src]Struct vessels::format::cbor::Cbor

pub struct Cbor;

A format implementing the Compact Binary Object Representation.

CBOR is a binary over-the-wire format loosely based on JSON that is defined in IETF RFC 7049. It is performant and concise and an effective alternative to bincode in applications where stability of the format across distinct Rust compiler versions is necessary, that of course including most applications where any persistence of serialized data is intended. This functionality is provided by serde_cbor.

For this format to be used the cbor feature must be enabled.

Trait Implementations

impl Format for Cbor[src]

type Representation = Vec<u8>

The underlying representation used by this Format, i.e. Vec<u8> for most binary formats and String for those of a human-readable nature. Read more

type Error = Error

The failure condition of this format. This may be encountered during deserialization.

Auto Trait Implementations

impl Send for Cbor

impl Sync for Cbor

impl Unpin for Cbor

impl UnwindSafe for Cbor

impl RefUnwindSafe for Cbor

Blanket Implementations

impl<'de, U, K> ApplyDecode<'de, K> for U where
    K: Kind
[src]

impl<'de, C, T, K> Decode<'de, C, K> for T where
    C: 'static + UniformStreamSink<<T as Format>::Representation> + Send + Sync,
    K: Kind,
    T: 'static + Format,
    <T as Format>::Representation: Sync,
    <T as Format>::Representation: Send,
    <T as Format>::Representation: Clone,
    <C as Sink<<T as Format>::Representation>>::Error: ErrorBound, 
[src]

type Output = Pin<Box<dyn Future<Output = Result<K, <K as Kind>::ConstructError>> + 'static + Sync + Send>>

impl<'de, T, C> Encode<'de, C> for T where
    C: 'static + Context<'de> + UniformStreamSink<<C as Context<'de>>::Item> + Send + Sync,
    T: 'static + Format,
    <T as Format>::Representation: Sync,
    <T as Format>::Representation: Send,
    <T as Format>::Representation: Clone,
    <C as Context<'de>>::Item: Sync,
    <C as Context<'de>>::Item: Send,
    <C as Sink<<C as Context<'de>>::Item>>::Error: ErrorBound, 
[src]

type Output = SinkStream<<T as Format>::Representation, EncodeError<T, <C as Context<'de>>::Item, C>, <T as Format>::Representation>

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any