Trait InvalidationReason

Source
pub trait InvalidationReason:
    DynamicEqHash
    + 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 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 · 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.
Source§

impl Eq for dyn InvalidationReason

Implementors§