[][src]Enum custom_codes::KeyLength

pub enum KeyLength {
    Bytes8,
    Bytes16,
    Bytes24,
    Bytes32,
    Bytes64,
    Bytes128,
    Bytes256,
    Bytes512,
    Bytes1024,
    Bytes2048,
    Bytes4096,
}

The length of a key in bytes needed by a cryptography algorithm

Examples

let foo = KeyLength::Bytes32;
assert_eq!(foo, KeyLength::Bytes32);

Variants

Bytes8

A Key length of 8 bytes

Bytes16

A Key length of 16 bytes

Bytes24

A Key length of 24 bytes

Bytes32

A Key length of 32 bytes

Bytes64

A Key length of 64 bytes

Bytes128

A Key length of 128 bytes

Bytes256

A Key length of 256 bytes

Bytes512

A Key length of 512 bytes

Bytes1024

A Key length of 1024 bytes

Bytes2048

A Key length of 2048 bytes

Bytes4096

A Key length of 4096 bytes

Trait Implementations

impl Clone for KeyLength[src]

impl Debug for KeyLength[src]

impl<'de> Deserialize<'de> for KeyLength[src]

impl Display for KeyLength[src]

impl Eq for KeyLength[src]

impl Error for KeyLength[src]

impl PartialEq<KeyLength> for KeyLength[src]

impl Serialize for KeyLength[src]

impl StructuralEq for KeyLength[src]

impl StructuralPartialEq for KeyLength[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.