Skip to main content

Running

Trait Running 

Source
pub trait Running: Send {
    // Provided methods
    fn alive(&mut self) -> bool { ... }
    fn endpoint(&self, key: &str) -> Option<String> { ... }
}
Expand description

A started service. Dropping it stops it.

Provided Methods§

Source

fn alive(&mut self) -> bool

Whether it is still up.

Source

fn endpoint(&self, key: &str) -> Option<String>

Where to find it: "port", "pid", "container", whatever the service tells.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§