Struct options::OptionsCache
source · pub struct OptionsCache<T> { /* private fields */ }
Expand description
Represents a cache for configured options.
Trait Implementations§
source§impl<T> Default for OptionsCache<T>
impl<T> Default for OptionsCache<T>
source§impl<T> OptionsMonitorCache<T> for OptionsCache<T>
impl<T> OptionsMonitorCache<T> for OptionsCache<T>
source§fn get_or_add(
&self,
name: Option<&str>,
create_options: &dyn Fn(Option<&str>) -> T
) -> Ref<T>
fn get_or_add( &self, name: Option<&str>, create_options: &dyn Fn(Option<&str>) -> T ) -> Ref<T>
Gets or adds options with the specified name. Read more
source§fn try_add(&self, name: Option<&str>, options: T) -> bool
fn try_add(&self, name: Option<&str>, options: T) -> bool
Attempts to add options with the specified name. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for OptionsCache<T>
impl<T> !Send for OptionsCache<T>
impl<T> !Sync for OptionsCache<T>
impl<T> Unpin for OptionsCache<T>
impl<T> UnwindSafe for OptionsCache<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more