Skip to main content

UserServiceModule

Trait UserServiceModule 

Source
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§

Source

fn instantiate( &self, runtime: ServiceSyncRuntimeHandle, ) -> Result<UserServiceInstance, ExecutionError>

Instantiates the service with the given runtime handle.

Implementors§