pub enum EncryptionKeySizeError {
TooShort,
TooLong,
}
Expand description
Errors that can occur when creating an EncryptionKeySize
.
Variants§
TooShort
The provided size was less than the minimum allowed size.
TooLong
The provided size was greater than the maximum allowed size.
Trait Implementations§
Source§impl Clone for EncryptionKeySizeError
impl Clone for EncryptionKeySizeError
Source§fn clone(&self) -> EncryptionKeySizeError
fn clone(&self) -> EncryptionKeySizeError
Returns a copy 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 EncryptionKeySizeError
impl Debug for EncryptionKeySizeError
Source§impl PartialEq for EncryptionKeySizeError
impl PartialEq for EncryptionKeySizeError
impl Copy for EncryptionKeySizeError
impl StructuralPartialEq for EncryptionKeySizeError
Auto Trait Implementations§
impl Freeze for EncryptionKeySizeError
impl RefUnwindSafe for EncryptionKeySizeError
impl Send for EncryptionKeySizeError
impl Sync for EncryptionKeySizeError
impl Unpin for EncryptionKeySizeError
impl UnwindSafe for EncryptionKeySizeError
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