[][src]Enum ssb_multiformats::multifeed::Multifeed

pub enum Multifeed {
    Multikey(Multikey),
}

A multifeed that owns its data.

Variants

Multikey(Multikey)

Implementations

impl Multifeed[src]

pub fn from_multikey(mk: Multikey) -> Multifeed[src]

Create a new multifeed of kind multikey.

pub fn from_legacy(s: &[u8]) -> Result<(Multifeed, &[u8]), DecodeLegacyError>[src]

Parses a legacy encoding into a Multifeed, also returning the remaining input on success.

pub fn to_legacy<W: Write>(&self, w: &mut W) -> Result<(), Error>[src]

Serialize a Multifeed into a writer, using the legacy encoding.

pub fn to_legacy_vec(&self) -> Vec<u8>[src]

Serialize a Multifeed into an owned byte vector, using the legacy encoding.

pub fn to_legacy_string(&self) -> String[src]

Serialize a Multifeed into an owned string, using the legacy encoding.

Trait Implementations

impl Clone for Multifeed[src]

impl Debug for Multifeed[src]

impl Eq for Multifeed[src]

impl Hash for Multifeed[src]

impl Ord for Multifeed[src]

impl PartialEq<Multifeed> for Multifeed[src]

impl PartialOrd<Multifeed> for Multifeed[src]

impl StructuralEq for Multifeed[src]

impl StructuralPartialEq for Multifeed[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,