pub enum RefreshMode {
Manual,
Always,
Files,
Auto,
}Expand description
Map cache refresh modes (SPEC §11).
Variants§
Manual
Return last_map if set, never recompute
Always
Never use cache, always recompute
Files
Always use cache if key matches
Auto
Use cache only if last computation took >1.0s
Trait Implementations§
Source§impl Clone for RefreshMode
impl Clone for RefreshMode
Source§fn clone(&self) -> RefreshMode
fn clone(&self) -> RefreshMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RefreshMode
Source§impl Debug for RefreshMode
impl Debug for RefreshMode
Source§impl Default for RefreshMode
impl Default for RefreshMode
Source§fn default() -> RefreshMode
fn default() -> RefreshMode
Returns the “default value” for a type. Read more
impl Eq for RefreshMode
Source§impl PartialEq for RefreshMode
impl PartialEq for RefreshMode
Source§fn eq(&self, other: &RefreshMode) -> bool
fn eq(&self, other: &RefreshMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RefreshMode
Auto Trait Implementations§
impl Freeze for RefreshMode
impl RefUnwindSafe for RefreshMode
impl Send for RefreshMode
impl Sync for RefreshMode
impl Unpin for RefreshMode
impl UnsafeUnpin for RefreshMode
impl UnwindSafe for RefreshMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.