pub struct Recovered<P> {
pub tasks: Vec<RecoveredTask<P>>,
pub terminal: Vec<RecoveredTerminal>,
pub recurring: Vec<RecoveredRecurring<P>>,
pub next_id: u64,
}Expand description
Engine state restored from durable storage, passed to Core::recover.
Fields§
§tasks: Vec<RecoveredTask<P>>Live (non-terminal) tasks.
terminal: Vec<RecoveredTerminal>Recently finished tasks.
recurring: Vec<RecoveredRecurring<P>>Recurring schedules.
next_id: u64Lowest task id the engine may hand out next.
Implementations§
Source§impl<P> Recovered<P>
impl<P> Recovered<P>
Sourcepub fn outside_shard(&self, shard: u8) -> Option<TaskId>
pub fn outside_shard(&self, shard: u8) -> Option<TaskId>
The first recovered task id that does not belong to shard, if any: the store holds
tasks of another shard. Ids of an unsharded server are caught only when their top byte
differs from shard (early epochs look like shard 0’s), so give shards new stores.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for Recovered<P>
impl<P> RefUnwindSafe for Recovered<P>
impl<P> Send for Recovered<P>
impl<P> Sync for Recovered<P>
impl<P> Unpin for Recovered<P>
impl<P> UnsafeUnpin for Recovered<P>
impl<P> UnwindSafe for Recovered<P>
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