[][src]Enum challenge_bypass_ristretto::errors::InternalError

pub enum InternalError {
    PointDecompressionError,
    ScalarFormatError,
    BytesLengthError {
        name: &'static str,
        length: usize,
    },
    VerifyError,
    LengthMismatchError,
    DecodingError,
}

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

Variants

PointDecompressionError

An error occured when converting from a CompressedRistretto to a RistrettoPoint

ScalarFormatError

An error occured when interpretting bytes as a scalar

BytesLengthError

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

Fields of BytesLengthError

name: &'static str

The name of the type

length: usize

The expected number of bytes

VerifyError

Verification failed

LengthMismatchError

Inputs differed in length

DecodingError

Decoding failed

Trait Implementations

impl Clone for InternalError[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for InternalError[src]

impl Display for InternalError[src]

impl PartialEq<InternalError> for InternalError[src]

impl Eq for InternalError[src]

impl Hash for InternalError[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Copy for InternalError[src]

impl Error for InternalError[src]

fn description(&self) -> &str
1.0.0
[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

The lower-level source of this error, if any. Read more

fn type_id(&self) -> TypeId where
    Self: 'static, 
[src]

🔬 This is a nightly-only experimental API. (error_type_id)

unclear whether to commit to this public implementation detail

Get the TypeId of self

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

type Owned = T

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

impl<T> Same for T

type Output = T

Should always be Self