#[non_exhaustive]pub enum ServiceRunEnd {
Succeeded {
previous_failures: u32,
},
Failed {
failures: u32,
error: String,
},
Aborted,
Skipped,
}Expand description
How one run of a service ended.
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.
Succeeded
previous_failures is the streak it ended.
Failed
It returned an error or panicked. failures counts the streak.
Aborted
Still going when the host’s grace period ran out, so it was aborted. Neither a success nor a failure.
Skipped
The host stopped while the run waited for a concurrency permit, so it never began.
Trait Implementations§
Source§impl Clone for ServiceRunEnd
impl Clone for ServiceRunEnd
Source§impl Debug for ServiceRunEnd
impl Debug for ServiceRunEnd
impl Eq for ServiceRunEnd
Source§impl PartialEq for ServiceRunEnd
impl PartialEq for ServiceRunEnd
impl StructuralPartialEq for ServiceRunEnd
Auto Trait Implementations§
impl Forget for ServiceRunEnd
impl Freeze for ServiceRunEnd
impl Move for ServiceRunEnd
impl RefUnwindSafe for ServiceRunEnd
impl Send for ServiceRunEnd
impl Sync for ServiceRunEnd
impl Unpin for ServiceRunEnd
impl UnsafeUnpin for ServiceRunEnd
impl UnwindSafe for ServiceRunEnd
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