Enum debian_packaging::io::ContentDigest
source · [−]Expand description
Represents a content digest.
Variants
Md5(Vec<u8>)
An MD5 digest.
Sha1(Vec<u8>)
A SHA-1 digest.
Sha256(Vec<u8>)
A SHA-256 digest.
Implementations
Create a new MD5 instance by parsing a hex digest.
Create a new SHA-1 instance by parsing a hex digest.
Create a new SHA-256 instance by parsing a hex digest.
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ContentDigest
impl Send for ContentDigest
impl Sync for ContentDigest
impl Unpin for ContentDigest
impl UnwindSafe for ContentDigest
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
pub fn vzip(self) -> V
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