pub struct AutomaticCache { /* private fields */ }Expand description
Alfred Script Filter automatic cache metadata.
Implementations§
Source§impl AutomaticCache
impl AutomaticCache
Sourcepub const MIN_SECONDS: u64 = 5
pub const MIN_SECONDS: u64 = 5
Minimum accepted cache duration in seconds.
Sourcepub const MAX_SECONDS: u64 = 86_400
pub const MAX_SECONDS: u64 = 86_400
Maximum accepted cache duration in seconds.
Sourcepub fn try_new(seconds: u64) -> Result<Self>
pub fn try_new(seconds: u64) -> Result<Self>
Creates automatic cache metadata with the given duration.
Sourcepub fn try_with_loose_reload(
seconds: u64,
loose_reload: Option<bool>,
) -> Result<Self>
pub fn try_with_loose_reload( seconds: u64, loose_reload: Option<bool>, ) -> Result<Self>
Creates automatic cache metadata with an optional loosereload flag.
Sourcepub fn loose_reload(&self) -> Option<bool>
pub fn loose_reload(&self) -> Option<bool>
Returns the optional Alfred loosereload flag.
Trait Implementations§
Source§impl Clone for AutomaticCache
impl Clone for AutomaticCache
Source§impl Debug for AutomaticCache
impl Debug for AutomaticCache
Source§impl<'de> Deserialize<'de> for AutomaticCache
impl<'de> Deserialize<'de> for AutomaticCache
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AutomaticCache
Source§impl PartialEq for AutomaticCache
impl PartialEq for AutomaticCache
Source§impl Serialize for AutomaticCache
impl Serialize for AutomaticCache
impl StructuralPartialEq for AutomaticCache
Auto Trait Implementations§
impl Forget for AutomaticCache
impl Freeze for AutomaticCache
impl Move for AutomaticCache
impl RefUnwindSafe for AutomaticCache
impl Send for AutomaticCache
impl Sync for AutomaticCache
impl Unpin for AutomaticCache
impl UnsafeUnpin for AutomaticCache
impl UnwindSafe for AutomaticCache
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.