pub struct HmacSecretSaltOrOutput { /* private fields */ }Expand description
The salts (salt1 and salt2) or the outputs (output1 and output2) depending on whether
this is in the input request, or in the response.
Implementations§
Source§impl HmacSecretSaltOrOutput
impl HmacSecretSaltOrOutput
Sourcepub fn new(salt1: [u8; 32], salt2: Option<[u8; 32]>) -> Self
pub fn new(salt1: [u8; 32], salt2: Option<[u8; 32]>) -> Self
Create a new HmacSecretSaltOrOutput from sized arrays which is infallible
Sourcepub fn try_new(
salt1: &[u8],
salt2: Option<&[u8]>,
) -> Result<Self, TryFromSliceError>
pub fn try_new( salt1: &[u8], salt2: Option<&[u8]>, ) -> Result<Self, TryFromSliceError>
Try creating a new HmacSecretSaltOrOutput from byte slices. Returns an error if any of the given slices are
not exactly 32 bytes long.
Trait Implementations§
Source§impl Clone for HmacSecretSaltOrOutput
impl Clone for HmacSecretSaltOrOutput
Source§fn clone(&self) -> HmacSecretSaltOrOutput
fn clone(&self) -> HmacSecretSaltOrOutput
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 HmacSecretSaltOrOutput
impl Debug for HmacSecretSaltOrOutput
Auto Trait Implementations§
impl Freeze for HmacSecretSaltOrOutput
impl RefUnwindSafe for HmacSecretSaltOrOutput
impl Send for HmacSecretSaltOrOutput
impl Sync for HmacSecretSaltOrOutput
impl Unpin for HmacSecretSaltOrOutput
impl UnwindSafe for HmacSecretSaltOrOutput
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