core_crypto

Trait ToRecursiveError

source
pub trait ToRecursiveError {
    // Required method
    fn construct_recursive(self, context: &'static str) -> RecursiveError;
}
Expand description

Like Into, but different, because we don’t actually want to implement Into for our subordinate error types.

By forcing ourselves to map errors everywhere in order for question mark operators to work, we ensure that

Required Methods§

source

fn construct_recursive(self, context: &'static str) -> RecursiveError

Construct a recursive error given the current context

Implementors§

source§

impl ToRecursiveError for core_crypto::e2e_identity::Error

source§

impl ToRecursiveError for core_crypto::mls::conversation::Error

source§

impl ToRecursiveError for core_crypto::mls::Error

source§

impl ToRecursiveError for core_crypto::prelude::Error