pub enum EntryEventKind {
Upserted,
Removed,
Evicted,
Invalidated,
}Expand description
Entry-event kind exposed to Java/IMap-style listeners.
Variants§
Upserted
A key changed, but the signal cannot distinguish add from update.
Removed
A key was removed/tombstoned.
Evicted
A key was evicted or expired.
Invalidated
A freshness invalidation without business-event semantics.
Implementations§
Source§impl EntryEventKind
impl EntryEventKind
Sourcepub const fn from_source(source: EntryEventSource) -> Self
pub const fn from_source(source: EntryEventSource) -> Self
Conservatively project a cache/invalidation source into an entry-event kind.
Trait Implementations§
Source§impl Clone for EntryEventKind
impl Clone for EntryEventKind
Source§fn clone(&self) -> EntryEventKind
fn clone(&self) -> EntryEventKind
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 EntryEventKind
Source§impl Debug for EntryEventKind
impl Debug for EntryEventKind
Source§impl<'de> Deserialize<'de> for EntryEventKind
impl<'de> Deserialize<'de> for EntryEventKind
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 EntryEventKind
Source§impl PartialEq for EntryEventKind
impl PartialEq for EntryEventKind
Source§fn eq(&self, other: &EntryEventKind) -> bool
fn eq(&self, other: &EntryEventKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EntryEventKind
impl Serialize for EntryEventKind
impl StructuralPartialEq for EntryEventKind
Auto Trait Implementations§
impl Freeze for EntryEventKind
impl RefUnwindSafe for EntryEventKind
impl Send for EntryEventKind
impl Sync for EntryEventKind
impl Unpin for EntryEventKind
impl UnsafeUnpin for EntryEventKind
impl UnwindSafe for EntryEventKind
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