pub enum RecursiveError {
Root {
context: &'static str,
source: Box<Error>,
},
TransactionContext {
context: &'static str,
source: Box<Error>,
},
E2e {
context: &'static str,
source: Box<Error>,
},
Mls {
context: &'static str,
source: Box<Error>,
},
MlsClient {
context: &'static str,
source: Box<Error>,
},
MlsConversation {
context: &'static str,
source: Box<Error>,
},
MlsCredential {
context: &'static str,
source: Box<Error>,
},
}
Expand description
These errors wrap each of the module-specific errors in CoreCrypto.
The goal here is to reduce the need to redeclare each of these error types as an individual variant of a module-specific error type.
Variants§
Implementations§
Source§impl RecursiveError
impl RecursiveError
pub fn root<E: Into<Error>>(context: &'static str) -> impl FnOnce(E) -> Self
pub fn transaction<E: Into<Error>>( context: &'static str, ) -> impl FnOnce(E) -> Self
pub fn e2e_identity<E: Into<Error>>( context: &'static str, ) -> impl FnOnce(E) -> Self
pub fn mls<E: Into<Error>>(context: &'static str) -> impl FnOnce(E) -> Self
pub fn mls_client<E: Into<Error>>( context: &'static str, ) -> impl FnOnce(E) -> Self
pub fn mls_conversation<E: Into<Error>>( context: &'static str, ) -> impl FnOnce(E) -> Self
pub fn mls_credential<E: Into<Error>>( context: &'static str, ) -> impl FnOnce(E) -> Self
Trait Implementations§
Source§impl Debug for RecursiveError
impl Debug for RecursiveError
Source§impl Display for RecursiveError
impl Display for RecursiveError
Source§impl Error for RecursiveError
impl Error for RecursiveError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<RecursiveError> for Error
impl From<RecursiveError> for Error
Source§fn from(source: RecursiveError) -> Self
fn from(source: RecursiveError) -> Self
Converts to this type from the input type.
Source§impl From<RecursiveError> for Error
impl From<RecursiveError> for Error
Source§fn from(source: RecursiveError) -> Self
fn from(source: RecursiveError) -> Self
Converts to this type from the input type.
Source§impl From<RecursiveError> for Error
impl From<RecursiveError> for Error
Source§fn from(source: RecursiveError) -> Self
fn from(source: RecursiveError) -> Self
Converts to this type from the input type.
Source§impl From<RecursiveError> for Error
impl From<RecursiveError> for Error
Source§fn from(source: RecursiveError) -> Self
fn from(source: RecursiveError) -> Self
Converts to this type from the input type.
Source§impl From<RecursiveError> for Error
impl From<RecursiveError> for Error
Source§fn from(source: RecursiveError) -> Self
fn from(source: RecursiveError) -> Self
Converts to this type from the input type.
Source§impl From<RecursiveError> for Error
impl From<RecursiveError> for Error
Source§fn from(source: RecursiveError) -> Self
fn from(source: RecursiveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RecursiveError
impl !RefUnwindSafe for RecursiveError
impl Send for RecursiveError
impl Sync for RecursiveError
impl Unpin for RecursiveError
impl !UnwindSafe for RecursiveError
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
Source§impl<E> InnermostErrorMessage for Ewhere
E: Error,
impl<E> InnermostErrorMessage for Ewhere
E: Error,
Source§fn innermost_error_message(&self) -> String
fn innermost_error_message(&self) -> String
Produce the error message from the innermost wrapped error.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more