pub trait AppModwhere
Self: Sized,{
type InitOptions: Hash + Clone + Send + Sync + Eq;
type ModConfig: Hash + Clone + Send + Sync + PartialEq + Eq + Debug;
const VERSION: &'static str = "unknown";
// Required methods
fn config<'life0, 'async_trait>(
builder: &'life0 mut AppModBuilder,
opt: AppModInitOptions<Self::InitOptions>
) -> Pin<Box<dyn Future<Output = Result<Self::ModConfig, MajordomeError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn init<'life0, 'async_trait>(
builder: &'life0 mut AppModBuilder,
config: Self::ModConfig
) -> Pin<Box<dyn Future<Output = Result<Self, MajordomeError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Associated Types§
type InitOptions: Hash + Clone + Send + Sync + Eq
type ModConfig: Hash + Clone + Send + Sync + PartialEq + Eq + Debug
Provided Associated Constants§
Required Methods§
fn config<'life0, 'async_trait>(
builder: &'life0 mut AppModBuilder,
opt: AppModInitOptions<Self::InitOptions>
) -> Pin<Box<dyn Future<Output = Result<Self::ModConfig, MajordomeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
builder: &'life0 mut AppModBuilder,
config: Self::ModConfig
) -> Pin<Box<dyn Future<Output = Result<Self, MajordomeError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Object Safety§
This trait is not object safe.