pub trait ModuleInit:
Debug
+ Clone
+ Send
+ Sync
+ 'static {
type Common: CommonModuleInit;
// Required method
fn dump_database(
&self,
dbtx: &mut DatabaseTransaction<'_>,
prefix_names: Vec<String>,
) -> impl Future<Output = Box<dyn Iterator<Item = (String, Box<dyn Serialize + Send>)> + '_>> + Send;
}
Expand description
Trait implemented by every *ModuleInit
(server or client side)
Required Associated Types§
type Common: CommonModuleInit
Required Methods§
fn dump_database( &self, dbtx: &mut DatabaseTransaction<'_>, prefix_names: Vec<String>, ) -> impl Future<Output = Box<dyn Iterator<Item = (String, Box<dyn Serialize + Send>)> + '_>> + Send
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.