trait Storable<Types: NodeType>: HeightIndexed + Clone {
// Required methods
fn name() -> &'static str;
fn notify(
&self,
notifiers: &Notifiers<Types>,
) -> impl Send + Future<Output = ()>;
fn store(
self,
storage: &mut (impl UpdateAvailabilityStorage<Types> + Send),
leaf_only: bool,
) -> impl Send + Future<Output = Result<()>>;
}
Expand description
An object which can be stored in the database.
Required Methods§
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.