pub enum InvalidLengthError {
_Fixed(usize, usize),
UpTo(usize, usize),
}Expand description
An error denoting that a value was of an invalid length. Typically this will be used as a
variant of ArxKwError rather than on its own.
Variants§
_Fixed(usize, usize)
Invalid length in a context expecting a fixed length.
UpTo(usize, usize)
Invalid length in a context which accepts a variable length (e.g. plaintext and ciphertext inputs)
Trait Implementations§
Source§impl Debug for InvalidLengthError
impl Debug for InvalidLengthError
Source§impl Display for InvalidLengthError
impl Display for InvalidLengthError
Source§impl Error for InvalidLengthError
impl Error for InvalidLengthError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<InvalidLengthError> for ArxKwError
impl From<InvalidLengthError> for ArxKwError
Source§fn from(source: InvalidLengthError) -> Self
fn from(source: InvalidLengthError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidLengthError
impl RefUnwindSafe for InvalidLengthError
impl Send for InvalidLengthError
impl Sync for InvalidLengthError
impl Unpin for InvalidLengthError
impl UnwindSafe for InvalidLengthError
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