Trait chainerror::ChainErrorDown[][src]

pub trait ChainErrorDown {
    fn is_chain<T: 'static + Display + Debug>(&self) -> bool;
fn downcast_chain_ref<T: 'static + Display + Debug>(
        &self
    ) -> Option<&ChainError<T>>;
fn downcast_chain_mut<T: 'static + Display + Debug>(
        &mut self
    ) -> Option<&mut ChainError<T>>;
fn downcast_inner_ref<T: 'static + Error>(&self) -> Option<&T>;
fn downcast_inner_mut<T: 'static + Error>(&mut self) -> Option<&mut T>; }

Convenience trait to hide the ChainError<T> implementation internals

Required methods

fn is_chain<T: 'static + Display + Debug>(&self) -> bool[src]

Test if of type ChainError<T>

fn downcast_chain_ref<T: 'static + Display + Debug>(
    &self
) -> Option<&ChainError<T>>
[src]

Downcast to a reference of ChainError<T>

fn downcast_chain_mut<T: 'static + Display + Debug>(
    &mut self
) -> Option<&mut ChainError<T>>
[src]

Downcast to a mutable reference of ChainError<T>

fn downcast_inner_ref<T: 'static + Error>(&self) -> Option<&T>[src]

Downcast to T of ChainError<T>

fn downcast_inner_mut<T: 'static + Error>(&mut self) -> Option<&mut T>[src]

Downcast to T mutable reference of ChainError<T>

Loading content...

Implementations on Foreign Types

impl ChainErrorDown for dyn Error + 'static[src]

impl ChainErrorDown for dyn Error + Send + 'static[src]

impl ChainErrorDown for dyn Error + Send + Sync + 'static[src]

Loading content...

Implementors

impl<U: 'static + Display + Debug> ChainErrorDown for ChainError<U>[src]

Loading content...