Skip to main content

WireStats

Trait WireStats 

Source
pub trait WireStats {
    // Required methods
    fn nodes_created(&self) -> u64;
    fn nodes_deleted(&self) -> u64;
    fn relationships_created(&self) -> u64;
    fn relationships_deleted(&self) -> u64;
    fn properties_set(&self) -> u64;
    fn labels_added(&self) -> u64;
    fn labels_removed(&self) -> u64;
    fn indexes_added(&self) -> u64;
    fn indexes_removed(&self) -> u64;
    fn constraints_added(&self) -> u64;
    fn constraints_removed(&self) -> u64;
}
Expand description

The 11 canonical mutation counters, read as u64.

Implemented by WireStatsSnapshot here (built from the executor’s QueryStats via relate::query_stats_to_wire), so stats_to_wire_json can serialize either without relate-model depending on the executor.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§