yew_stdweb::format

Type Alias Binary

Source
pub type Binary = Result<Vec<u8>, Error>;
Expand description

A representation of a value which can be stored and restored as a binary.

Aliased Type§

enum Binary {
    Ok(Vec<u8>),
    Err(Error),
}

Variants§

§1.0.0

Ok(Vec<u8>)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

impl<'a, T> From<Bincode<&'a T>> for Binary
where T: Serialize,

Source§

fn from(value: Bincode<&'a T>) -> Binary

Converts to this type from the input type.
Source§

impl<'a, T> From<Cbor<&'a T>> for Binary
where T: Serialize,

Source§

fn from(value: Cbor<&'a T>) -> Binary

Converts to this type from the input type.
Source§

impl<'a, T> From<Json<&'a T>> for Binary
where T: Serialize,

Source§

fn from(value: Json<&'a T>) -> Binary

Converts to this type from the input type.
Source§

impl<'a, T> From<MsgPack<&'a T>> for Binary
where T: Serialize,

Source§

fn from(value: MsgPack<&'a T>) -> Binary

Converts to this type from the input type.
Source§

impl<'a, T> From<Toml<&'a T>> for Binary
where T: Serialize,

Source§

fn from(value: Toml<&'a T>) -> Binary

Converts to this type from the input type.
Source§

impl<'a, T> From<Yaml<&'a T>> for Binary
where T: Serialize,

Source§

fn from(value: Yaml<&'a T>) -> Binary

Converts to this type from the input type.