pub enum ServiceTaskState {
NotStarted,
Starting,
Running,
Stopping,
Stopped,
}Expand description
Lifecycle state of a ServiceManager and the loop it runs.
Variants§
NotStarted
The service has never been started.
Starting
start accepted the request and is spawning the loop.
Running
The loop is running.
Stopping
A stop was requested and the loop has not finished yet.
Stopped
The loop finished, or shutdown completed.
Trait Implementations§
Source§impl Clone for ServiceTaskState
impl Clone for ServiceTaskState
impl Copy for ServiceTaskState
Source§impl Debug for ServiceTaskState
impl Debug for ServiceTaskState
impl Eq for ServiceTaskState
Source§impl PartialEq for ServiceTaskState
impl PartialEq for ServiceTaskState
impl StructuralPartialEq for ServiceTaskState
Auto Trait Implementations§
impl Freeze for ServiceTaskState
impl RefUnwindSafe for ServiceTaskState
impl Send for ServiceTaskState
impl Sync for ServiceTaskState
impl Unpin for ServiceTaskState
impl UnsafeUnpin for ServiceTaskState
impl UnwindSafe for ServiceTaskState
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