pub enum Algorithm {
Hs2019,
Deprecated(DeprecatedAlgorithm),
Unknown(String),
}
Expand description
Kinds of algorithms
This library knows about HS2019 as a supported algorithm, and any other algorithms are either unknown at the time of writing, or deprecated
Variants§
Hs2019
The only officially supported algorithm from the current HTTP Signatures specification
Deprecated(DeprecatedAlgorithm)
Algorithms that have been used historically, but are deprecated
Unknown(String)
Algorithms that may be used by custom implementations and are unknown to the spec
Trait Implementations§
source§impl From<DeprecatedAlgorithm> for Algorithm
impl From<DeprecatedAlgorithm> for Algorithm
source§fn from(d: DeprecatedAlgorithm) -> Algorithm
fn from(d: DeprecatedAlgorithm) -> Algorithm
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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