pub struct EntryEvent {
pub ns: Namespace,
pub key: Option<StructuredKey>,
pub kind: EntryEventKind,
pub value: Option<Vec<u8>>,
pub residency_degraded: bool,
pub watermark: Option<Watermark>,
}Expand description
IMap entry-event shaped cache signal.
Fields§
§ns: NamespaceNamespace.
key: Option<StructuredKey>Key when the underlying signal is key-scoped.
kind: EntryEventKindConservative event kind.
value: Option<Vec<u8>>Optional value, gated by residency and transport support.
residency_degraded: boolWhether value inclusion was degraded by residency.
watermark: Option<Watermark>Event watermark, if the source carries one.
Implementations§
Source§impl EntryEvent
impl EntryEvent
Sourcepub fn from_invalidation(event: InvalidationEvent) -> Self
pub fn from_invalidation(event: InvalidationEvent) -> Self
Project a near-cache invalidation into an IMap-shaped entry-event signal.
Sourcepub fn from_source(
ns: Namespace,
key: Option<StructuredKey>,
source: EntryEventSource,
value: Option<Vec<u8>>,
watermark: Option<Watermark>,
) -> Self
pub fn from_source( ns: Namespace, key: Option<StructuredKey>, source: EntryEventSource, value: Option<Vec<u8>>, watermark: Option<Watermark>, ) -> Self
Build an entry event from a known cache signal source.
Trait Implementations§
Source§impl Clone for EntryEvent
impl Clone for EntryEvent
Source§fn clone(&self) -> EntryEvent
fn clone(&self) -> EntryEvent
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 moreSource§impl Debug for EntryEvent
impl Debug for EntryEvent
Source§impl<'de> Deserialize<'de> for EntryEvent
impl<'de> Deserialize<'de> for EntryEvent
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 EntryEvent
Source§impl PartialEq for EntryEvent
impl PartialEq for EntryEvent
Source§fn eq(&self, other: &EntryEvent) -> bool
fn eq(&self, other: &EntryEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EntryEvent
impl Serialize for EntryEvent
impl StructuralPartialEq for EntryEvent
Auto Trait Implementations§
impl Freeze for EntryEvent
impl RefUnwindSafe for EntryEvent
impl Send for EntryEvent
impl Sync for EntryEvent
impl Unpin for EntryEvent
impl UnsafeUnpin for EntryEvent
impl UnwindSafe for EntryEvent
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