pub struct InvalidKey;Expand description
Error type for TryKeyInit for cases where the provided bytes do not correspond to a
valid key.
Trait Implementations§
Source§impl Clone for InvalidKey
impl Clone for InvalidKey
Source§fn clone(&self) -> InvalidKey
fn clone(&self) -> InvalidKey
Returns a duplicate 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 InvalidKey
impl Debug for InvalidKey
Source§impl Display for InvalidKey
impl Display for InvalidKey
Source§impl Error for InvalidKey
impl Error for InvalidKey
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 PartialEq for InvalidKey
impl PartialEq for InvalidKey
impl Copy for InvalidKey
impl Eq for InvalidKey
impl StructuralPartialEq for InvalidKey
Auto Trait Implementations§
impl Freeze for InvalidKey
impl RefUnwindSafe for InvalidKey
impl Send for InvalidKey
impl Sync for InvalidKey
impl Unpin for InvalidKey
impl UnwindSafe for InvalidKey
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