pub trait Backend: Sync + Send {
// Required methods
fn total_in(&self) -> u64;
fn total_out(&self) -> u64;
}Expand description
Traits specifying the interface of the backends.
Sync + Send are added as a condition to ensure they are available for the frontend.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".