[][src]Struct ssb_tfk::TypeFormatKey

pub struct TypeFormatKey {
    pub key_type: KeyType,
    pub format: Format,
}

TypeFormatKey is able to represent any of the current ssb key types and encode / decode them to the TFK binary representation.

Fields

key_type: KeyTypeformat: Format

Implementations

impl TypeFormatKey[src]

pub fn new(key_type: KeyType, format: Format) -> TypeFormatKey[src]

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

pub fn decode_read<R: Read>(reader: &mut R) -> Result<TypeFormatKey, Error>[src]

Trait Implementations

impl Debug for TypeFormatKey[src]

impl PartialEq<TypeFormatKey> for TypeFormatKey[src]

impl StructuralPartialEq for TypeFormatKey[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, 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.