pub enum MemoryEvent {
NodeUpserted {
node: MemoryNode,
},
FactRecorded {
fact: MemoryFact,
},
FactRetracted {
fact_id: FactId,
valid_until: Timestamp,
evidence: Vec<Evidence>,
},
}Variants§
Implementations§
Source§impl MemoryEvent
impl MemoryEvent
pub const fn event_type(&self) -> &'static str
Trait Implementations§
Source§impl Clone for MemoryEvent
impl Clone for MemoryEvent
Source§fn clone(&self) -> MemoryEvent
fn clone(&self) -> MemoryEvent
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 MemoryEvent
impl Debug for MemoryEvent
Source§impl<'de> Deserialize<'de> for MemoryEvent
impl<'de> Deserialize<'de> for MemoryEvent
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 MemoryEvent
Source§impl PartialEq for MemoryEvent
impl PartialEq for MemoryEvent
Source§impl Projection<MemoryEvent> for MemoryProjection
impl Projection<MemoryEvent> for MemoryProjection
Source§fn prepare_replay(&mut self, events: &[StoredEvent<MemoryEvent>])
fn prepare_replay(&mut self, events: &[StoredEvent<MemoryEvent>])
Reserves projection-specific capacity before a known replay batch. Read more
Source§fn apply(&mut self, event: &StoredEvent<MemoryEvent>) -> Result<()>
fn apply(&mut self, event: &StoredEvent<MemoryEvent>) -> Result<()>
Applies one validated stored event. Read more
Source§fn apply_owned(&mut self, event: StoredEvent<MemoryEvent>) -> Result<()>
fn apply_owned(&mut self, event: StoredEvent<MemoryEvent>) -> Result<()>
Applies one owned event. The default preserves the borrowed contract;
projections may override it to move large payloads without cloning. Read more
Source§impl Serialize for MemoryEvent
impl Serialize for MemoryEvent
impl StructuralPartialEq for MemoryEvent
Auto Trait Implementations§
impl Freeze for MemoryEvent
impl RefUnwindSafe for MemoryEvent
impl Send for MemoryEvent
impl Sync for MemoryEvent
impl Unpin for MemoryEvent
impl UnsafeUnpin for MemoryEvent
impl UnwindSafe for MemoryEvent
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