Struct slog_atomic::AtomicSwitchCtrl [] [src]

pub struct AtomicSwitchCtrl<E>(_);

Handle to AtomicSwitch that controls it.

Methods

impl<E> AtomicSwitchCtrl<E>
[src]

Get Arc to the currently wrapped drain

Set the current wrapped drain

Swap the existing drain with a new one

Get a AtomicSwitch drain controlled by this AtomicSwitchCtrl