pub struct RuntimeState {
pub timers: BTreeMap<String, TimerRecord>,
pub requests: BTreeMap<String, Option<String>>,
pub answered: BTreeSet<String>,
pub timed_out: BTreeSet<String>,
pub cancelled: BTreeSet<String>,
pub invocations: BTreeMap<String, InvocationLog>,
}Expand description
The runtime’s per-actor state besides the session and datamodel: pending timers and reminders, open requests and running invocations. It is part of snapshots and rebuilt by replay.
Fields§
§timers: BTreeMap<String, TimerRecord>Pending timers and reminders by IRI.
requests: BTreeMap<String, Option<String>>Open requests: correlation id to the IRI of their timeout timer.
answered: BTreeSet<String>Correlation ids already answered.
timed_out: BTreeSet<String>Correlation ids whose timeout fired.
cancelled: BTreeSet<String>IRIs of cancelled timers.
invocations: BTreeMap<String, InvocationLog>Running invocations by invoke id.
Trait Implementations§
Source§impl Clone for RuntimeState
impl Clone for RuntimeState
Source§impl Debug for RuntimeState
impl Debug for RuntimeState
Source§impl Default for RuntimeState
impl Default for RuntimeState
Source§impl<'de> Deserialize<'de> for RuntimeState
impl<'de> Deserialize<'de> for RuntimeState
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
Source§impl PartialEq for RuntimeState
impl PartialEq for RuntimeState
Source§impl Serialize for RuntimeState
impl Serialize for RuntimeState
impl StructuralPartialEq for RuntimeState
Auto Trait Implementations§
impl Forget for RuntimeState
impl Freeze for RuntimeState
impl Move for RuntimeState
impl RefUnwindSafe for RuntimeState
impl Send for RuntimeState
impl Sync for RuntimeState
impl Unpin for RuntimeState
impl UnsafeUnpin for RuntimeState
impl UnwindSafe for RuntimeState
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