pub enum Salt<'a> {
None,
NonEmpty(&'a [u8]),
}Expand description
HKDF’s optional salt values. See https://datatracker.ietf.org/doc/html/rfc5869#section-3.1
Variants§
None
No salt.
NonEmpty(&'a [u8])
An explicit salt. Note that an empty value here is interpreted the same
as if passing None.
Auto Trait Implementations§
impl<'a> Freeze for Salt<'a>
impl<'a> RefUnwindSafe for Salt<'a>
impl<'a> Send for Salt<'a>
impl<'a> Sync for Salt<'a>
impl<'a> Unpin for Salt<'a>
impl<'a> UnsafeUnpin for Salt<'a>
impl<'a> UnwindSafe for Salt<'a>
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