Struct itsdangerous::algorithm::Signature
source · [−]pub struct Signature<N: ArrayLength<u8>>(_);
Expand description
Represents a computed signature.
Two signatures of the same type can be compared safely using Eq/PartialEq, thanks to the underlying constant time comparison provided by MacResult.
Trait Implementations
sourceimpl<N: ArrayLength<u8>> From<GenericArray<u8, N>> for Signature<N>
impl<N: ArrayLength<u8>> From<GenericArray<u8, N>> for Signature<N>
sourcefn from(code: GenericArray<u8, N>) -> Self
fn from(code: GenericArray<u8, N>) -> Self
Performs the conversion.
sourceimpl<N: ArrayLength<u8>> From<MacResult<N>> for Signature<N>
impl<N: ArrayLength<u8>> From<MacResult<N>> for Signature<N>
impl<N: Eq + ArrayLength<u8>> Eq for Signature<N>
impl<N: ArrayLength<u8>> StructuralEq for Signature<N>
Auto Trait Implementations
impl<N> RefUnwindSafe for Signature<N> where
<N as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<N> Send for Signature<N>
impl<N> Sync for Signature<N>
impl<N> Unpin for Signature<N> where
<N as ArrayLength<u8>>::ArrayType: Unpin,
impl<N> UnwindSafe for Signature<N> where
<N as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more