pub trait Versioned {
// Required methods
fn revision(&self) -> u64;
fn set_revision(&mut self, r: u64);
}Expand description
A trait allowing to get/set a revision on an object. NATS uses this to ensure atomic updates.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".