Struct slog_atomic::AtomicSwitch [] [src]

pub struct AtomicSwitch<E>(_);

Drain wrapping another drain, allowing atomic substitution in runtime

Methods

impl<E> AtomicSwitch<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<E> Drain for AtomicSwitch<E>
[src]

Type of potential errors returned during logging

Log one logging record Read more