pub enum RecursiveError {
Root {
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§
Root
Wrap a crate::Error for recursion.
E2e
Wrap a crate::e2e_identity::Error for recursion.
Mls
Wrap a crate::mls::Error for recursion.
MlsClient
Wrap a [crate::mls::client::Error] for recursion.
MlsConversation
Wrap a crate::mls::conversation::Error for recursion.
MlsCredential
Wrap a [crate::mls::credential::Error] for recursion.
Implementations§
source§impl RecursiveError
impl RecursiveError
sourcepub fn root<E: Into<Error>>(context: &'static str) -> impl FnOnce(E) -> Self
pub fn root<E: Into<Error>>(context: &'static str) -> impl FnOnce(E) -> Self
Convert a crate::Error into a RecursiveError, with context
sourcepub fn e2e_identity<E: Into<Error>>(
context: &'static str,
) -> impl FnOnce(E) -> Self
pub fn e2e_identity<E: Into<Error>>( context: &'static str, ) -> impl FnOnce(E) -> Self
Convert a crate::e2e_identity::Error into a RecursiveError, with context
sourcepub fn mls<E: Into<Error>>(context: &'static str) -> impl FnOnce(E) -> Self
pub fn mls<E: Into<Error>>(context: &'static str) -> impl FnOnce(E) -> Self
Convert a crate::mls::Error into a RecursiveError, with context
sourcepub fn mls_client<E: Into<Error>>(
context: &'static str,
) -> impl FnOnce(E) -> Self
pub fn mls_client<E: Into<Error>>( context: &'static str, ) -> impl FnOnce(E) -> Self
Convert a [crate::mls::client::Error] into a RecursiveError, with context
sourcepub fn mls_conversation<E: Into<Error>>(
context: &'static str,
) -> impl FnOnce(E) -> Self
pub fn mls_conversation<E: Into<Error>>( context: &'static str, ) -> impl FnOnce(E) -> Self
Convert a crate::mls::conversation::Error into a RecursiveError, with context
sourcepub fn mls_credential<E: Into<Error>>(
context: &'static str,
) -> impl FnOnce(E) -> Self
pub fn mls_credential<E: Into<Error>>( context: &'static str, ) -> impl FnOnce(E) -> Self
Convert a [crate::mls::credential::Error] into a RecursiveError, with context
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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<RecursiveError> for Error
impl From<RecursiveError> for Error
source§fn from(source: RecursiveError) -> Self
fn from(source: RecursiveError) -> Self
source§impl From<RecursiveError> for Error
impl From<RecursiveError> for Error
source§fn from(source: RecursiveError) -> Self
fn from(source: RecursiveError) -> Self
source§impl From<RecursiveError> for Error
impl From<RecursiveError> for Error
source§fn from(source: RecursiveError) -> Self
fn from(source: RecursiveError) -> Self
source§impl From<RecursiveError> for Error
impl From<RecursiveError> for Error
source§fn from(source: RecursiveError) -> Self
fn from(source: RecursiveError) -> Self
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read moresource§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
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>
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>
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