pub struct InvalidKeyBytesError {
pub expected: usize,
pub got: usize,
}Expand description
Error when creating keys from invalid byte arrays
Fields§
§expected: usize§got: usizeTrait Implementations§
Source§impl Clone for InvalidKeyBytesError
impl Clone for InvalidKeyBytesError
Source§fn clone(&self) -> InvalidKeyBytesError
fn clone(&self) -> InvalidKeyBytesError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InvalidKeyBytesError
impl Debug for InvalidKeyBytesError
Source§impl Display for InvalidKeyBytesError
impl Display for InvalidKeyBytesError
Source§impl Error for InvalidKeyBytesError
impl Error for InvalidKeyBytesError
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()
Auto Trait Implementations§
impl Freeze for InvalidKeyBytesError
impl RefUnwindSafe for InvalidKeyBytesError
impl Send for InvalidKeyBytesError
impl Sync for InvalidKeyBytesError
impl Unpin for InvalidKeyBytesError
impl UnsafeUnpin for InvalidKeyBytesError
impl UnwindSafe for InvalidKeyBytesError
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