Struct slog_atomic::AtomicSwitchCtrl [] [src]

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

Handle to AtomicSwitch that controls it.

Methods

impl<O, E> AtomicSwitchCtrl<O, 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