Skip to main content

InvalidationReason

Trait InvalidationReason 

Source
pub trait InvalidationReason:
    DynEq
    + DynHash
    + Display
    + Send
    + Sync
    + 'static {
    // Provided method
    fn kind(&self) -> Option<StaticOrArc<dyn InvalidationReasonKind>> { ... }
}
Expand description

A user-facing reason why a task was invalidated. This should only be used for invalidation that were triggered by the user.

Reasons are deduplicated, so this need to implement Eq and Hash

Provided Methods§

Trait Implementations§

Source§

impl Eq for dyn InvalidationReason

Source§

impl Hash for dyn InvalidationReason

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for dyn InvalidationReason

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§