Trap

Trait Trap 

Source
pub trait Trap:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn trap(&self, err: &Error);
}
Expand description

A trap for processing errors.

Required Methods§

Source

fn trap(&self, err: &Error)

Process an error.

Trait Implementations§

Source§

impl<T: Trap> From<T> for Box<dyn Trap>

Source§

fn from(value: T) -> Self

Converts to this type from the input type.

Implementors§