pub struct MacSigner<M>(pub M);
Expand description
Message signer that supports the HS256, HS384 and HS512 algorithms using rust-crypto
.
Tuple Fields
0: M
Trait Implementations
sourceimpl Signer for MacSigner<Hmac<Sha256>>
impl Signer for MacSigner<Hmac<Sha256>>
sourcefn set_header_params(&mut self, headers: HeadersMut<'_>) -> Result<()>
fn set_header_params(&mut self, headers: HeadersMut<'_>) -> Result<()>
Set the header parameters to indicate how the message should be verified. Read more
sourceimpl Signer for MacSigner<Hmac<Sha384>>
impl Signer for MacSigner<Hmac<Sha384>>
sourcefn set_header_params(&mut self, headers: HeadersMut<'_>) -> Result<()>
fn set_header_params(&mut self, headers: HeadersMut<'_>) -> Result<()>
Set the header parameters to indicate how the message should be verified. Read more
Auto Trait Implementations
impl<M> RefUnwindSafe for MacSigner<M>where
M: RefUnwindSafe,
impl<M> Send for MacSigner<M>where
M: Send,
impl<M> Sync for MacSigner<M>where
M: Sync,
impl<M> Unpin for MacSigner<M>where
M: Unpin,
impl<M> UnwindSafe for MacSigner<M>where
M: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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