pub enum InternalError {
PointDecompressionError,
ScalarFormatError,
BytesLengthError {
name: &'static str,
length: usize,
},
VerifyError,
LengthMismatchError,
DecodingError,
}
Expand description
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.
VerifyError
Verification failed
LengthMismatchError
Inputs differed in length
DecodingError
Decoding failed
Trait Implementations§
source§impl Clone for InternalError
impl Clone for InternalError
source§fn clone(&self) -> InternalError
fn clone(&self) -> InternalError
Returns a copy 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 InternalError
impl Debug for InternalError
source§impl Display for InternalError
impl Display for InternalError
source§impl Error for InternalError
impl Error for InternalError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for InternalError
impl Hash for InternalError
source§impl PartialEq for InternalError
impl PartialEq for InternalError
source§fn eq(&self, other: &InternalError) -> bool
fn eq(&self, other: &InternalError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for InternalError
impl Eq for InternalError
impl StructuralEq for InternalError
impl StructuralPartialEq for InternalError
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§
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