Struct slog_atomic::AtomicSwitch [] [src]

pub struct AtomicSwitch<O = (), E = Never>(_);

Drain wrapping another drain, allowing atomic substitution in runtime

Methods

impl<O, E> AtomicSwitch<O, E>
[src]

Wrap drain in AtomicSwitch to allow swapping it later

Use AtomicSwitch::ctrl() to get a handle to it

Create new AtomicSwitch from an existing Arc<...>

See AtomicSwitch::new()

Get a AtomicSwitchCtrl handle to control this AtomicSwitch drain

Trait Implementations

impl<O, E> Drain for AtomicSwitch<O, E>
[src]

Type returned by this drain Read more

Type of potential errors that can be returned by this Drain

Handle one logging statement (Record) Read more

Pass Drain through a closure, eg. to wrap into another Drain. Read more

Filter logging records passed to Drain Read more

Filter logging records passed to Drain (by level) Read more

Map logging errors returned by this drain Read more

Ignore results returned by this drain Read more

Make Self panic when returning any errors Read more