pub trait Details:
GetServerConfig
+ 'static
+ Sized {
type AppCreatorT;
type AppT;
type ExtraRunningState: Clone + Debug;
type RunningStateSeed: Send + 'static;
type ExtraSharedState;
type ExtraServerState;
type ObjectStoreT;
const NAME: Name;
// Required methods
fn create_running_state(
server: &ServerImpl<Self>,
constellation: &Constellation,
seed: &Self::RunningStateSeed,
) -> Result<Self::ExtraRunningState>;
fn create_extra_shared_state(
config: &Config,
) -> Result<Self::ExtraSharedState>;
fn create_extra_server_state(
config: &Config,
) -> Result<Self::ExtraServerState>;
}Expand description
Details needed to create a ServerImpl type.
Required Associated Constants§
Required Associated Types§
type AppCreatorT
type AppT
type ExtraRunningState: Clone + Debug
type RunningStateSeed: Send + 'static
type ExtraServerState
type ObjectStoreT
Required Methods§
fn create_running_state( server: &ServerImpl<Self>, constellation: &Constellation, seed: &Self::RunningStateSeed, ) -> Result<Self::ExtraRunningState>
fn create_extra_server_state(config: &Config) -> Result<Self::ExtraServerState>
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.