#[non_exhaustive]pub enum ServiceEvent {
Launched {
service: String,
run: u64,
},
Ended {
service: String,
run: u64,
outcome: ServiceRunEnd,
elapsed: Duration,
},
StartFailed {
service: String,
error: String,
},
}Expand description
What happened to a service. Every ServiceEvent::Launched is
followed by exactly one ServiceEvent::Ended with the same run.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Launched
A run was launched.
Ended
A run ended, however it ended. elapsed is how long it ran, on
Tokio’s clock (zero for a run that never began).
StartFailed
start failed.
Trait Implementations§
Source§impl Clone for ServiceEvent
impl Clone for ServiceEvent
Source§impl Debug for ServiceEvent
impl Debug for ServiceEvent
impl Eq for ServiceEvent
Source§impl PartialEq for ServiceEvent
impl PartialEq for ServiceEvent
impl StructuralPartialEq for ServiceEvent
Auto Trait Implementations§
impl Forget for ServiceEvent
impl Freeze for ServiceEvent
impl Move for ServiceEvent
impl RefUnwindSafe for ServiceEvent
impl Send for ServiceEvent
impl Sync for ServiceEvent
impl Unpin for ServiceEvent
impl UnsafeUnpin for ServiceEvent
impl UnwindSafe for ServiceEvent
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