[][src]Enum ed25519_dalek::errors::InternalError

pub(crate) enum InternalError {
    PointDecompressionError,
    ScalarFormatError,
    BytesLengthError {
        name: &'static str,
        length: usize,
    },
    VerifyError,
    ArrayLengthError {
        name_a: &'static str,
        length_a: usize,
        name_b: &'static str,
        length_b: usize,
        name_c: &'static str,
        length_c: usize,
    },
}

Internal errors. Most application-level developers will likely not need to pay any attention to these.

Variants

PointDecompressionError
ScalarFormatError
BytesLengthError

An error in the length of bytes handed to a constructor.

To use this, pass a string specifying the name of the type which is returning the error, and the length in bytes which its constructor expects.

Fields of BytesLengthError

name: &'static strlength: usize
VerifyError

The verification equation wasn't satisfied

ArrayLengthError

Two arrays did not match in size, making the called signature verification method impossible.

Fields of ArrayLengthError

name_a: &'static strlength_a: usizename_b: &'static strlength_b: usizename_c: &'static strlength_c: usize

Trait Implementations

impl Clone for InternalError[src]

impl Copy for InternalError[src]

impl Debug for InternalError[src]

impl Display for InternalError[src]

impl Eq for InternalError[src]

impl Error for InternalError[src]

impl Hash for InternalError[src]

impl PartialEq<InternalError> for InternalError[src]

impl StructuralEq for InternalError[src]

impl StructuralPartialEq for InternalError[src]

Auto Trait Implementations

impl RefUnwindSafe for InternalError

impl Send for InternalError

impl Sync for InternalError

impl Unpin for InternalError

impl UnwindSafe for InternalError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,