Struct OutboxAdvanceRequest
pub struct OutboxAdvanceRequest {
pub key: OutboxKey,
pub phase: OutboxPhase,
pub sampler_state: Option<StateBlob>,
pub scheduler_state: Option<StateBlob>,
pub effects: Vec<OutboxEffectIntent>,
}Expand description
One atomic callback-phase advance request.
State supplied for the current phase replaces the corresponding initial seam baseline before the cursor advances. A replay for an already-passed phase is a no-op, including when its payload differs.
Fields§
§key: OutboxKeyThe terminal finalization being replayed.
phase: OutboxPhaseThe phase the caller is attempting to commit.
sampler_state: Option<StateBlob>Post-callback sampler state to replace the recorded baseline.
scheduler_state: Option<StateBlob>Post-callback scheduler state to replace the recorded baseline.
effects: Vec<OutboxEffectIntent>New resume/effect intents discovered by this callback.
Implementations§
§impl OutboxAdvanceRequest
impl OutboxAdvanceRequest
pub const fn new(key: OutboxKey, phase: OutboxPhase) -> Self
pub const fn new(key: OutboxKey, phase: OutboxPhase) -> Self
Creates an empty phase-advance request.
pub fn with_sampler_state(self, state: StateBlob) -> Self
pub fn with_sampler_state(self, state: StateBlob) -> Self
Adds sampler state to this phase’s atomic commit.
pub fn with_scheduler_state(self, state: StateBlob) -> Self
pub fn with_scheduler_state(self, state: StateBlob) -> Self
Adds scheduler state to this phase’s atomic commit.
pub fn with_effect(self, effect: OutboxEffectIntent) -> Self
pub fn with_effect(self, effect: OutboxEffectIntent) -> Self
Adds one newly discovered effect to this phase’s atomic commit.
pub fn with_effects(
self,
effects: impl IntoIterator<Item = OutboxEffectIntent>,
) -> Self
pub fn with_effects( self, effects: impl IntoIterator<Item = OutboxEffectIntent>, ) -> Self
Adds several newly discovered effects to this phase’s atomic commit.
Trait Implementations§
§impl Clone for OutboxAdvanceRequest
impl Clone for OutboxAdvanceRequest
§fn clone(&self) -> OutboxAdvanceRequest
fn clone(&self) -> OutboxAdvanceRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more