Struct options::DefaultOptionsMonitor
source · [−]pub struct DefaultOptionsMonitor<T> { /* private fields */ }Expand description
Represents the default implementation for notifications when option instances change.
Implementations
sourceimpl<T: 'static> DefaultOptionsMonitor<T>
impl<T: 'static> DefaultOptionsMonitor<T>
sourcepub fn new(
cache: Rc<dyn OptionsMonitorCache<T>>,
sources: Vec<Rc<dyn OptionsChangeTokenSource<T>>>,
factory: Rc<dyn OptionsFactory<T>>
) -> Self
pub fn new(
cache: Rc<dyn OptionsMonitorCache<T>>,
sources: Vec<Rc<dyn OptionsChangeTokenSource<T>>>,
factory: Rc<dyn OptionsFactory<T>>
) -> Self
Initializes a new default options monitor.
Arguments
cache- the cache used for monitored optionssources- the source tokens used to track option changesfactory- the factory used to create new options
Trait Implementations
sourceimpl<T> OptionsMonitor<T> for DefaultOptionsMonitor<T>
impl<T> OptionsMonitor<T> for DefaultOptionsMonitor<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for DefaultOptionsMonitor<T>
impl<T> !Send for DefaultOptionsMonitor<T>
impl<T> !Sync for DefaultOptionsMonitor<T>
impl<T> Unpin for DefaultOptionsMonitor<T>
impl<T> !UnwindSafe for DefaultOptionsMonitor<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more