#[non_exhaustive]pub enum RunLifecycleEvent {
Started {
run_id: RunId,
},
Completed {
run_id: RunId,
},
Failed {
run_id: RunId,
error: String,
recoverable: bool,
},
Cancelled {
run_id: RunId,
},
}Expand description
Run lifecycle events.
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.
Started
A run started.
Completed
A run completed successfully.
Failed
A run failed.
Cancelled
A run was cancelled.
Implementations§
Source§impl RunLifecycleEvent
impl RunLifecycleEvent
pub fn event_code(&self) -> EventCodeId
Trait Implementations§
Source§impl Clone for RunLifecycleEvent
impl Clone for RunLifecycleEvent
Source§fn clone(&self) -> RunLifecycleEvent
fn clone(&self) -> RunLifecycleEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RunLifecycleEvent
impl Debug for RunLifecycleEvent
Source§impl<'de> Deserialize<'de> for RunLifecycleEvent
impl<'de> Deserialize<'de> for RunLifecycleEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RunLifecycleEvent
impl RefUnwindSafe for RunLifecycleEvent
impl Send for RunLifecycleEvent
impl Sync for RunLifecycleEvent
impl Unpin for RunLifecycleEvent
impl UnsafeUnpin for RunLifecycleEvent
impl UnwindSafe for RunLifecycleEvent
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