pub struct Handover {
pub cause: Cause,
pub flights: Vec<Flight>,
pub progress: Vec<String>,
}Expand description
Everything a new run is told about the run it is taking over from.
Fields§
§cause: CauseWhy this run is starting.
flights: Vec<Flight>The flights the earlier run was given, which this one receives again.
progress: Vec<String>What the earlier run had recorded before it stopped, newest last.
Whatever the store can honestly supply: lines the agent wrote to its memory, a summary of its transcript. Never a promise that the list is complete — an interrupted run stops mid-sentence by definition.
Implementations§
Source§impl Handover
impl Handover
Sourcepub fn recovered(recovery: Recovery, flights: Vec<Flight>) -> Self
pub fn recovered(recovery: Recovery, flights: Vec<Flight>) -> Self
A restart of interrupted work.
Sourcepub fn steered(steer: Steer, flights: Vec<Flight>) -> Self
pub fn steered(steer: Steer, flights: Vec<Flight>) -> Self
A redirection of work already under way.
Sourcepub fn resumed(resumption: Resumption, flights: Vec<Flight>) -> Self
pub fn resumed(resumption: Resumption, flights: Vec<Flight>) -> Self
Work an earlier chain set down deliberately.
Sourcepub fn with_progress(self, progress: Vec<String>) -> Self
pub fn with_progress(self, progress: Vec<String>) -> Self
Adds what the earlier run had managed to record.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Handover
impl<'de> Deserialize<'de> for Handover
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
impl Eq for Handover
impl StructuralPartialEq for Handover
Auto Trait Implementations§
impl Freeze for Handover
impl RefUnwindSafe for Handover
impl Send for Handover
impl Sync for Handover
impl Unpin for Handover
impl UnsafeUnpin for Handover
impl UnwindSafe for Handover
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