Trait fedimint_client::module::init::ClientModuleInit
source · pub trait ClientModuleInit: ModuleInit + Sized {
type Module: ClientModule;
// Required methods
fn supported_api_versions(&self) -> MultiApiVersion;
fn init<'life0, 'life1, 'async_trait>(
&'life0 self,
args: &'life1 ClientModuleInitArgs<Self>
) -> Pin<Box<dyn Future<Output = Result<Self::Module>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Required Associated Types§
type Module: ClientModule
Required Methods§
sourcefn supported_api_versions(&self) -> MultiApiVersion
fn supported_api_versions(&self) -> MultiApiVersion
Api versions of the corresponding server side module’s API that this client module implementation can use.
sourcefn init<'life0, 'life1, 'async_trait>(
&'life0 self,
args: &'life1 ClientModuleInitArgs<Self>
) -> Pin<Box<dyn Future<Output = Result<Self::Module>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn init<'life0, 'life1, 'async_trait>(
&'life0 self,
args: &'life1 ClientModuleInitArgs<Self>
) -> Pin<Box<dyn Future<Output = Result<Self::Module>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Initialize a ClientModule
instance from its config
Object Safety§
This trait is not object safe.