Struct slog_atomic::AtomicSwitchCtrl [] [src]

pub struct AtomicSwitchCtrl(_);

Handle to AtomicSwitch allowing switching it's sub-drain

Methods

impl AtomicSwitchCtrl
[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