Skip to main content

ServiceSpec

Trait ServiceSpec 

Source
pub trait ServiceSpec {
    type Config: Serialize + DeserializeOwned + Send + 'static;
    type Command: Serialize + DeserializeOwned + Send + 'static;
    type CommandOk: Serialize + DeserializeOwned + Send + 'static;
    type CommandErr: Serialize + DeserializeOwned + Send + 'static;
    type Event: Serialize + DeserializeOwned + Send + 'static;
    type StartErr: Serialize + DeserializeOwned + Send + 'static;

    const NAME: &'static str;
}

Required Associated Constants§

Source

const NAME: &'static str

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§