Struct slog_nursery::Failover [] [src]

pub struct Failover<D1: Drain, D2: Drain> { /* fields omitted */ }

Drain that switches destination of error

Logs everything to drain D1, but in case of it reporting an error, switching to D2. If D2 returns an error too, Failover will return an error.

Methods

impl<D1: Drain, D2: Drain> Failover<D1, D2>
[src]

Create Failover

Trait Implementations

impl<D1, D2, E1, E2> Drain for Failover<D1, D2> where
    D1: Drain<Error = E1>,
    D2: Drain<Error = E2>, 
[src]

Type of potential errors returned during logging

Log one logging record Read more