pub struct ResidentState {
pub rounds_reported: u32,
pub last_round: Option<RoundReport>,
pub last_landing: Option<RoundLanding>,
pub dormant_since: Option<Timestamp>,
pub expiry_attention_at: Option<Timestamp>,
}Expand description
Durable round state of a resident worker node (ADR 0003). Folded only from
told events; the read surfaces derive working | waiting | dormant from it.
Fields§
§rounds_reported: u32Rounds reported so far.
last_round: Option<RoundReport>The latest round report, open until a message resumes the worker.
last_landing: Option<RoundLanding>The latest landing.
dormant_since: Option<Timestamp>Set when idle expiry removed the worktree of a wholly landed round.
expiry_attention_at: Option<Timestamp>Set when idle expiry found unlanded work and raised attention.
Implementations§
Source§impl ResidentState
impl ResidentState
Sourcepub fn open_round(&self) -> Option<&RoundReport>
pub fn open_round(&self) -> Option<&RoundReport>
The open round report, if the worker is between rounds.
Trait Implementations§
Source§impl Clone for ResidentState
impl Clone for ResidentState
Source§impl Debug for ResidentState
impl Debug for ResidentState
Source§impl Default for ResidentState
impl Default for ResidentState
Source§impl<'de> Deserialize<'de> for ResidentState
impl<'de> Deserialize<'de> for ResidentState
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 ResidentState
Source§impl PartialEq for ResidentState
impl PartialEq for ResidentState
Source§impl Serialize for ResidentState
impl Serialize for ResidentState
impl StructuralPartialEq for ResidentState
Auto Trait Implementations§
impl Forget for ResidentState
impl Freeze for ResidentState
impl Move for ResidentState
impl RefUnwindSafe for ResidentState
impl Send for ResidentStatewhere
RawVecInner: Send,
impl Sync for ResidentStatewhere
RawVecInner: Sync,
impl Unpin for ResidentState
impl UnsafeUnpin for ResidentState
impl UnwindSafe for ResidentStatewhere
RawVecInner: UnwindSafe,
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