Enum debian_packaging::io::ContentDigest [−][src]
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
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 !=.
type Error = DebianError
type Error = DebianError
The type returned in the event of a conversion error.
Performs the conversion.
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
