pub trait ServerManager: Send + Sync {
// Required methods
async fn start(
&self,
network: Option<&str>,
bind_ip: Option<String>,
) -> Result<()>;
async fn stop(&self) -> Result<()>;
fn url(&self) -> String;
async fn is_running(&self) -> Result<bool>;
async fn wait_until_ready(&self, timeout_secs: u64) -> Result<()>;
}
Expand description
Common trait for server management
Required Methods§
Sourceasync fn is_running(&self) -> Result<bool>
async fn is_running(&self) -> Result<bool>
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.