pub trait UserServiceModule:
DynClone
+ Any
+ Post
+ Send
+ Sync {
// Required method
fn instantiate(
&self,
runtime: ServiceSyncRuntimeHandle,
) -> Result<UserServiceInstance, ExecutionError>;
}Expand description
A factory trait to obtain a UserService from a UserServiceModule
Required Methods§
Sourcefn instantiate(
&self,
runtime: ServiceSyncRuntimeHandle,
) -> Result<UserServiceInstance, ExecutionError>
fn instantiate( &self, runtime: ServiceSyncRuntimeHandle, ) -> Result<UserServiceInstance, ExecutionError>
Instantiates the service with the given runtime handle.