trait Storable<Types: NodeType>: Clone {
// Required methods
fn debug_name(&self) -> String;
fn notify(
&self,
notifiers: &Notifiers<Types>,
) -> impl Send + Future<Output = ()>;
fn store(
&self,
storage: &mut impl UpdateAvailabilityStorage<Types>,
leaf_only: bool,
) -> impl Send + Future<Output = Result<()>>;
}Expand description
An object which can be stored in the database.
Required Methods§
Sourcefn debug_name(&self) -> String
fn debug_name(&self) -> String
The name of this object, for debugging purposes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.