Struct InvalidKey
pub struct InvalidKey;
Error type for TryKeyInit for cases where the provided bytes do not correspond to a
valid key.
Trait Implementations
impl Clone for InvalidKey
fn clone(&self) -> InvalidKey
impl Copy for InvalidKey
impl Debug for InvalidKey
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for InvalidKey
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl Eq for InvalidKey
impl Error for InvalidKey
impl PartialEq for InvalidKey
fn eq(&self, other: &InvalidKey) -> bool
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 UnsafeUnpin for InvalidKey
impl UnwindSafe for InvalidKey
Blanket Implementations
impl<T> Any for InvalidKey
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for InvalidKey
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for InvalidKey
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for InvalidKey
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for InvalidKey
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Same for InvalidKey
type Output = T;
impl<T, U> Into<U> for InvalidKey
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for InvalidKey
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for InvalidKey
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>