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: Value> OptionsMonitorCache<T> for OptionsCache<T>
impl<T: Value> 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
impl<T: Send + Sync> Send for OptionsCache<T>
impl<T: Send + Sync> Sync for OptionsCache<T>
Auto Trait Implementations§
impl<T> !Freeze for OptionsCache<T>
impl<T> RefUnwindSafe 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