pub struct FixedLength<const L: usize>(/* private fields */);
Expand description
An initialization vector that must be unique for the lifetime of the associated key it is used with.
Implementations§
Source§impl<const L: usize> FixedLength<L>
impl<const L: usize> FixedLength<L>
Sourcepub fn new() -> Result<Self, Unspecified>
pub fn new() -> Result<Self, Unspecified>
Constructs a new FixedLength
from pseudo-random bytes.
§Errors
Unspecified
: Returned if there is a failure generatingL
bytes.
Trait Implementations§
Source§impl<const L: usize> Drop for FixedLength<L>
impl<const L: usize> Drop for FixedLength<L>
Auto Trait Implementations§
impl<const L: usize> Freeze for FixedLength<L>
impl<const L: usize> RefUnwindSafe for FixedLength<L>
impl<const L: usize> Send for FixedLength<L>
impl<const L: usize> Sync for FixedLength<L>
impl<const L: usize> Unpin for FixedLength<L>
impl<const L: usize> UnwindSafe for FixedLength<L>
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