Type Definition lunatic_cached_process::ProcessRefCached
source · pub type ProcessRefCached<'a, T> = CachedProcess<'a, ProcessRef<T>>;Trait Implementations§
source§impl<T> CachedLookup<'static, ProcessRef<T>> for ProcessRefCached<'_, T>
impl<T> CachedLookup<'static, ProcessRef<T>> for ProcessRefCached<'_, T>
source§fn get(&'static self) -> Option<ProcessRef<T>>
fn get(&'static self) -> Option<ProcessRef<T>>
Looks up a process by its name, and caches the result.
Subsequent calls will used the cached value.
source§fn set(&'static self, value: ProcessRef<T>)
fn set(&'static self, value: ProcessRef<T>)
Sets the cached lookup. This will prevent any lookups from being made,
since subsequent calls to
CachedLookup::get will return this cached value.source§fn reset(&'static self)
fn reset(&'static self)
Resets the cache, causing the next call to
CachedLookup::get to lookup the process again.