Struct InvalidLength

pub struct InvalidLength;

The error type returned when key and/or IV used in the KeyInit, KeyIvInit, and InnerIvInit slice-based methods had an invalid length.

Trait Implementations

impl Clone for InvalidLength

fn clone(&self) -> InvalidLength

impl Copy for InvalidLength

impl Debug for InvalidLength

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for InvalidLength

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

impl Eq for InvalidLength

impl Error for InvalidLength

impl PartialEq for InvalidLength

fn eq(&self, other: &InvalidLength) -> bool

impl StructuralPartialEq for InvalidLength

Auto Trait Implementations

impl Freeze for InvalidLength

impl RefUnwindSafe for InvalidLength

impl Send for InvalidLength

impl Sync for InvalidLength

impl Unpin for InvalidLength

impl UnsafeUnpin for InvalidLength

impl UnwindSafe for InvalidLength

Blanket Implementations

impl<T> Any for InvalidLength where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for InvalidLength where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for InvalidLength where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for InvalidLength where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for InvalidLength

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Same for InvalidLength

type Output = T;

impl<T, U> Into<U> for InvalidLength where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for InvalidLength where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for InvalidLength where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>