Skip to main content

Observable

Trait Observable 

Source
pub trait Observable: Output {
    // Required method
    fn snapshot(&mut self) -> u64;
}
Available on crate feature testing only.
Expand description

A backend that can report a digest of what changed since the last call.

See the module docs for why “since the last call”, not the whole history or the whole current state, is the contract every implementation has to meet.

Required Methods§

Source

fn snapshot(&mut self) -> u64

A digest of what changed since the previous call (or since construction, for the first call).

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§