Struct slog::Fuse
[−]
[src]
pub struct Fuse<D: Drain> { /* fields omitted */ }
Drain
panicking on error
Logger
requires a root drain to handle all errors (Drain::Error == ()
),
Fuse
will wrap a Drain
and panic if it returns any errors.
Note: Drain::Error
must implement Display
. It's easy to create own
Fuse
drain if this requirement can't be fulfilled.
Methods
impl<D: Drain> Fuse<D>
[src]
fn new(drain: D) -> Self
Create Fuse
wrapping given drain
Trait Implementations
impl<D: Drain> Drain for Fuse<D> where
D::Error: Display,
[src]
D::Error: Display,