pub struct Salt(/* private fields */);
Implementations§
Source§impl Salt
impl Salt
pub fn new_random() -> Self
pub fn try_from(bytes: &[u8]) -> Result<Salt, TryFromSliceError>
pub fn generate_strean_iv_for( &self, seq_number: SeqNumber, ) -> StreamInitializationVector
pub fn as_slice(&self) -> &[u8] ⓘ
Trait Implementations§
impl Eq for Salt
impl StructuralPartialEq for Salt
Auto Trait Implementations§
impl Freeze for Salt
impl RefUnwindSafe for Salt
impl Send for Salt
impl Sync for Salt
impl Unpin for Salt
impl UnwindSafe for Salt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.