pub enum ChecksumType {
Md5,
Sha1,
Sha256,
}Expand description
Checksum type / digest mechanism used in a release file.
Variants§
Implementations§
Source§impl ChecksumType
impl ChecksumType
Sourcepub fn preferred_order() -> impl Iterator<Item = ChecksumType>
pub fn preferred_order() -> impl Iterator<Item = ChecksumType>
Emit variants in their preferred usage order.
Sourcepub fn field_name(&self) -> &'static str
pub fn field_name(&self) -> &'static str
Name of the control field in Release files holding this variant type.
Sourcepub fn new_hasher(&self) -> Box<dyn Hasher + Send>
pub fn new_hasher(&self) -> Box<dyn Hasher + Send>
Obtain a new hasher for this checksum flavor.
Trait Implementations§
Source§impl Clone for ChecksumType
impl Clone for ChecksumType
Source§fn clone(&self) -> ChecksumType
fn clone(&self) -> ChecksumType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChecksumType
impl Debug for ChecksumType
Source§impl Hash for ChecksumType
impl Hash for ChecksumType
Source§impl Ord for ChecksumType
impl Ord for ChecksumType
Source§fn cmp(&self, other: &ChecksumType) -> Ordering
fn cmp(&self, other: &ChecksumType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ChecksumType
impl PartialEq for ChecksumType
Source§impl PartialOrd for ChecksumType
impl PartialOrd for ChecksumType
impl Copy for ChecksumType
impl Eq for ChecksumType
impl StructuralPartialEq for ChecksumType
Auto Trait Implementations§
impl Freeze for ChecksumType
impl RefUnwindSafe for ChecksumType
impl Send for ChecksumType
impl Sync for ChecksumType
impl Unpin for ChecksumType
impl UnwindSafe for ChecksumType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.