Enum libcoreinst::io::IgnitionHash[][src]

pub enum IgnitionHash {
    Sha256(Vec<u8>),
    Sha512(Vec<u8>),
}
Expand description

Ignition-style message digests

Variants

Sha256(Vec<u8>)

Tuple Fields

0: Vec<u8>

SHA-256 digest.

Sha512(Vec<u8>)

Tuple Fields

0: Vec<u8>

SHA-512 digest.

Implementations

Digest and validate input data.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Try to parse an hash-digest argument.

This expects an input value following the ignition.config.verification.hash spec, i.e. <type>-<value> format.

The associated error which can be returned from parsing.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.