Struct tor_config::MutCfg
source · [−]pub struct MutCfg<T> { /* private fields */ }
Expand description
A mutable configuration object.
Internally, this is just a RwLock<Arc<T>>
; this type just defines some
convenience wrappers for it.
Implementations
If this configuration object is still the same pointer as old_config
,
replace it with new_config
.
Returns true
if it was in fact replaced.
Replace the current configuration with the results of evaluating func
on it.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for MutCfg<T>
impl<T> UnwindSafe for MutCfg<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more