pub trait Service: Send + Sync {
// Required methods
fn name(&self) -> &str;
async fn start(&self) -> Result<()>;
async fn stop(&self) -> Result<()>;
async fn is_running(&self) -> bool;
}Expand description
Service trait
Required Methods§
Sourceasync fn is_running(&self) -> bool
async fn is_running(&self) -> bool
Check if service is running
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.