Type Definition lunatic_cached_process::ProcessCached
source · pub type ProcessCached<'a, T, S = Bincode> = CachedProcess<'a, Process<T, S>>;Trait Implementations§
source§impl<T, S> CachedLookup<'static, Process<T, S>> for ProcessCached<'_, T, S>
impl<T, S> CachedLookup<'static, Process<T, S>> for ProcessCached<'_, T, S>
source§fn get(&'static self) -> Option<Process<T, S>>
fn get(&'static self) -> Option<Process<T, S>>
Looks up a process by its name, and caches the result.
Subsequent calls will used the cached value.
source§fn set(&'static self, value: Process<T, S>)
fn set(&'static self, value: Process<T, S>)
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.