pub struct Transition {Show 14 fields
pub run: RunPatch,
pub kernel_state: KernelState,
pub state: String,
pub state_hash: String,
pub state_inline: bool,
pub events: Vec<Envelope>,
pub tasks: Vec<NewTask>,
pub task_updates: Vec<TaskUpdate>,
pub timers: Vec<NewTimer>,
pub spawns: Vec<NewSpawn>,
pub signal_waits: Vec<SignalWait>,
pub emits: Vec<Emit>,
pub completion: Option<Completion>,
pub continue_as_new: Option<ContinueAsNew>,
}Expand description
The write-set. Journals apply it atomically under the run lock and never interpret
commands themselves (see docs/journal.md).
Fields§
§run: RunPatchRun-row patch.
kernel_state: KernelStateKernel state after the transition.
state: StringUser state, byte-exact JSON. Stored inline when state_inline, else offloaded.
state_hash: StringHash of (kernel_state, state) (see docs/kernel-protocol.md).
state_inline: boolWhether state fits the inline limit (INLINE_LIMIT_BYTES).
events: Vec<Envelope>Trigger event first, then lifecycle scheduled events for each new task/timer/spawn/wait.
tasks: Vec<NewTask>Task rows to insert.
task_updates: Vec<TaskUpdate>Status changes to existing task rows.
timers: Vec<NewTimer>Timer rows to insert.
spawns: Vec<NewSpawn>Child runs to create.
signal_waits: Vec<SignalWait>Signal waits to register.
emits: Vec<Emit>Side-channel emissions to publish.
completion: Option<Completion>Set when the run ended in this transition.
continue_as_new: Option<ContinueAsNew>Set when the run continues as a successor run.
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Transition
impl Debug for Transition
Source§impl<'de> Deserialize<'de> for Transition
impl<'de> Deserialize<'de> for Transition
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 JsonSchema for Transition
impl JsonSchema for Transition
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for Transition
impl PartialEq for Transition
Source§fn eq(&self, other: &Transition) -> bool
fn eq(&self, other: &Transition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Transition
impl Serialize for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl Freeze for Transition
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnsafeUnpin for Transition
impl UnwindSafe for Transition
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