pub struct Supervisor { /* private fields */ }Implementations§
Source§impl Supervisor
impl Supervisor
pub fn new(subservices: Vec<Box<dyn Subservice>>) -> Self
Sourcepub fn start_autostart(&self) -> Vec<(&'static str, ServerError)>
pub fn start_autostart(&self) -> Vec<(&'static str, ServerError)>
Start every subservice that is not on-demand. A failure is reported and does not stop its siblings.
Sourcepub fn start_named(&self, name: &str) -> Result<Status, ServerError>
pub fn start_named(&self, name: &str) -> Result<Status, ServerError>
Start one named subservice (on-demand request path).
pub fn stop_named(&self, name: &str) -> Result<Status, ServerError>
pub fn statuses(&self) -> Vec<Status>
pub fn stop_all(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Supervisor
impl RefUnwindSafe for Supervisor
impl Send for Supervisor
impl Sync for Supervisor
impl Unpin for Supervisor
impl UnsafeUnpin for Supervisor
impl UnwindSafe for Supervisor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more