Struct srt_protocol::protocol::encryption::key::Salt
source · 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§
source§impl PartialEq<Salt> for Salt
impl PartialEq<Salt> for Salt
impl Eq for Salt
impl StructuralEq for Salt
impl StructuralPartialEq for Salt
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.