Struct slog_atomic::AtomicSwitchCtrl [] [src]

pub struct AtomicSwitchCtrl<E>(_);

Handle to AtomicSwitch allowing switching it's sub-drain

Methods

impl<E> AtomicSwitchCtrl<E>
[src]

Create new AtomicSwitchCtrl

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

Get a AtomicSwitch drain controlled by this AtomicSwitchCtrl

Set the drain

Swap the existing drain with a new one