pub enum DigestAlgorithm {
Blake3,
Sha256,
}Expand description
Hash algorithms supported by protocol version one.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for DigestAlgorithm
impl Clone for DigestAlgorithm
Source§fn clone(&self) -> DigestAlgorithm
fn clone(&self) -> DigestAlgorithm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DigestAlgorithm
Source§impl Debug for DigestAlgorithm
impl Debug for DigestAlgorithm
Source§impl<'de> Deserialize<'de> for DigestAlgorithm
impl<'de> Deserialize<'de> for DigestAlgorithm
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DigestAlgorithm
impl Display for DigestAlgorithm
impl Eq for DigestAlgorithm
Source§impl From<DigestAlgorithm> for String
impl From<DigestAlgorithm> for String
Source§fn from(algorithm: DigestAlgorithm) -> Self
fn from(algorithm: DigestAlgorithm) -> Self
Converts to this type from the input type.
Source§impl FromStr for DigestAlgorithm
impl FromStr for DigestAlgorithm
Source§impl Hash for DigestAlgorithm
impl Hash for DigestAlgorithm
Source§impl Ord for DigestAlgorithm
impl Ord for DigestAlgorithm
Source§fn cmp(&self, other: &DigestAlgorithm) -> Ordering
fn cmp(&self, other: &DigestAlgorithm) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DigestAlgorithm
impl PartialEq for DigestAlgorithm
Source§impl PartialOrd for DigestAlgorithm
impl PartialOrd for DigestAlgorithm
Source§impl Serialize for DigestAlgorithm
impl Serialize for DigestAlgorithm
impl StructuralPartialEq for DigestAlgorithm
Auto Trait Implementations§
impl Freeze for DigestAlgorithm
impl RefUnwindSafe for DigestAlgorithm
impl Send for DigestAlgorithm
impl Sync for DigestAlgorithm
impl Unpin for DigestAlgorithm
impl UnsafeUnpin for DigestAlgorithm
impl UnwindSafe for DigestAlgorithm
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