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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§