Enum debian_packaging::io::ContentDigest[][src]

pub enum ContentDigest {
    Md5(Vec<u8>),
    Sha1(Vec<u8>),
    Sha256(Vec<u8>),
}
Expand description

Represents a content digest.

Variants

Md5(Vec<u8>)

Tuple Fields

0: Vec<u8>

An MD5 digest.

Sha1(Vec<u8>)

Tuple Fields

0: Vec<u8>

A SHA-1 digest.

Sha256(Vec<u8>)

Tuple Fields

0: Vec<u8>

A SHA-256 digest.

Implementations

Obtain an instance by parsing a hex string as a ChecksumType.

Create a new hasher matching for the type of this digest.

Obtain the digest bytes for this content digest.

Obtain the hex encoded content digest.

Obtain the ChecksumType for this digest.

Obtain the name of the field in [In]Release files that holds this digest type.

This also corresponds to the directory name for by-hash paths.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

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.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more