Enum prople_crypto::errors::CommonError
source · pub enum CommonError {
ParseHexError(String),
BuildJSONError(String),
UnknownError,
}
Expand description
CommonError
this kind of error types used for all common errors
Variants§
Trait Implementations§
source§impl Debug for CommonError
impl Debug for CommonError
source§impl Display for CommonError
impl Display for CommonError
source§impl Error for CommonError
impl Error for CommonError
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 From<CommonError> for EcdhError
impl From<CommonError> for EcdhError
source§fn from(source: CommonError) -> Self
fn from(source: CommonError) -> Self
Converts to this type from the input type.
source§impl From<CommonError> for EddsaError
impl From<CommonError> for EddsaError
source§fn from(source: CommonError) -> Self
fn from(source: CommonError) -> Self
Converts to this type from the input type.
source§impl From<CommonError> for KeySecureError
impl From<CommonError> for KeySecureError
source§fn from(source: CommonError) -> Self
fn from(source: CommonError) -> Self
Converts to this type from the input type.
source§impl PartialEq for CommonError
impl PartialEq for CommonError
source§fn eq(&self, other: &CommonError) -> bool
fn eq(&self, other: &CommonError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CommonError
Auto Trait Implementations§
impl Freeze for CommonError
impl RefUnwindSafe for CommonError
impl Send for CommonError
impl Sync for CommonError
impl Unpin for CommonError
impl UnwindSafe for CommonError
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