[][src]Trait devolutions_crypto::HeaderType

pub trait HeaderType {
    type Version: Into<u16> + TryFrom<u16> + Clone + Default + Zeroize + Debug;
    type Subtype: Into<u16> + TryFrom<u16> + Clone + Default + Zeroize + Debug;
    fn data_type() -> DataType;

    fn default_version() -> Self::Version { ... }
fn subtype() -> Self::Subtype { ... } }

Associated Types

Loading content...

Required methods

Loading content...

Provided methods

fn default_version() -> Self::Version

fn subtype() -> Self::Subtype

Loading content...

Implementations on Foreign Types

impl HeaderType for ()[src]

type Version = CiphertextVersion

type Subtype = CiphertextSubtype

Loading content...

Implementors

impl HeaderType for Ciphertext[src]

type Version = CiphertextVersion

type Subtype = CiphertextSubtype

impl HeaderType for PrivateKey[src]

type Version = KeyVersion

type Subtype = KeySubtype

impl HeaderType for PublicKey[src]

type Version = KeyVersion

type Subtype = KeySubtype

impl HeaderType for PasswordHash[src]

type Version = PasswordHashVersion

type Subtype = PasswordHashSubtype

impl HeaderType for Share[src]

Loading content...