pub enum DbEvent {
EdgeFired {
rule: String,
src_key: String,
dst_key: String,
edge_type: String,
weight: Option<f64>,
commit_seq: u64,
},
EdgeRetracted {
rule: String,
src_key: String,
dst_key: String,
edge_type: String,
commit_seq: u64,
},
NodeInserted {
label: String,
key: String,
commit_seq: u64,
},
NodeDeleted {
key: String,
commit_seq: u64,
},
EdgeInserted {
edge_type: String,
src: String,
dst: String,
commit_seq: u64,
},
EdgeDeleted {
edge_type: String,
src: String,
dst: String,
commit_seq: u64,
},
PropSet {
key: String,
field: String,
commit_seq: u64,
},
PropRemoved {
key: String,
field: String,
commit_seq: u64,
},
Lagged {
missed: u64,
},
QueryRowAdded {
columns: Vec<String>,
row: Vec<Option<Value>>,
},
QueryRowRemoved {
columns: Vec<String>,
row: Vec<Option<Value>>,
},
}Expand description
A post-commit event delivered to subscribers.
Serialises as internally-tagged JSON ("type" discriminant, snake_case).
{"type":"edge_fired","rule":"skill_fit","src_key":"p1","dst_key":"proj-01",
"edge_type":"FIT","weight":0.87,"commit_seq":42}
{"type":"lagged","missed":3}Variants§
EdgeFired
A rule derived a new edge.
Fields
EdgeRetracted
A rule retracted a previously derived edge.
NodeInserted
A node was inserted.
NodeDeleted
A node was deleted.
EdgeInserted
A user-inserted edge was added.
EdgeDeleted
A user-inserted edge was deleted.
PropSet
A property was set on a node.
PropRemoved
A property was removed from a node.
Lagged
One or more events were dropped due to a full queue.
The subscriber must re-read graph state to recover consistency for
lossless consumers. missed is the count of dropped events.
QueryRowAdded
A row appeared in the result of a subscribe_query subscription.
Emitted after each commit when a full re-run of the subscribed Cypher query returns a row that was absent in the previous run.
Full re-run per commit; use LIMIT to bound execution cost.
QueryRowRemoved
A row disappeared from the result of a subscribe_query subscription.
Emitted after each commit when a row present in the previous run is absent from the current run.
Full re-run per commit; use LIMIT to bound execution cost.
Trait Implementations§
impl StructuralPartialEq for DbEvent
Auto Trait Implementations§
impl Freeze for DbEvent
impl RefUnwindSafe for DbEvent
impl Send for DbEvent
impl Sync for DbEvent
impl Unpin for DbEvent
impl UnsafeUnpin for DbEvent
impl UnwindSafe for DbEvent
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.