pub struct RunEvent {
pub at: UtcTime,
pub kind: String,
pub unit: Option<String>,
pub claim_seq: Option<i64>,
pub detail: String,
pub fields: Vec<(String, J)>,
}Expand description
One thing that happened to a run or to one of its units. (Not Event:
the scheduler has a private enum of that name for its own channel.)
Fields§
§at: UtcTime§kind: StringThe kind: dispatched, outcome, gate, run-ended, …
unit: Option<String>§claim_seq: Option<i64>§detail: StringHuman-readable text, possibly empty.
fields: Vec<(String, J)>The fields of this kind. Written in key order, whatever order they were added in.
Implementations§
Source§impl RunEvent
impl RunEvent
pub fn new( at: UtcTime, kind: &str, unit: Option<&str>, claim_seq: Option<i64>, detail: impl Into<String>, ) -> RunEvent
Trait Implementations§
impl StructuralPartialEq for RunEvent
Auto Trait Implementations§
impl Forget for RunEvent
impl Freeze for RunEvent
impl Move for RunEvent
impl RefUnwindSafe for RunEvent
impl Send for RunEvent
impl Sync for RunEvent
impl Unpin for RunEvent
impl UnsafeUnpin for RunEvent
impl UnwindSafe for RunEvent
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