Effect

Enum Effect 

Source
pub enum Effect<'a, S, P> {
Show 14 variants ReleaseSeq { seq: &'a mut S, cache: bool, what: &'static str, }, CompactSlot { seq: &'a mut S, target: usize, }, DetachSlot { seq: &'a mut S, }, SaveSequenceState { seq: &'a S, writer: &'a mut dyn Write, }, ReadLogits { logits: P, rows: usize, into: &'a mut Vec<u8>, }, MarconiCheckpoint { seq: &'a mut S, }, SsmSnapshotSave { seq: &'a S, slot: usize, }, SsmSnapshotRestore { seq: &'a S, slot: usize, }, SaveHiddenCatchup { row: usize, pos: usize, }, SyncSecondary, EpShutdown, Quiesce { stream: u64, }, ReserveKv { seq: &'a mut S, }, Rollback { seq: &'a mut S, },
}

Variants§

§

ReleaseSeq

2026-09-25: Release a sequence’s device resources: optionally offer its KV to the prefix cache, free it, then tell the EP worker.

Fields

§cache: bool
§what: &'static str

2026-09-25: The caller’s label, for the failure log lines.

§

CompactSlot

2026-09-25: Migrate a live sequence onto slot target.

Fields

§target: usize
§

DetachSlot

2026-09-25: Disown a sequence’s slot after it was migrated to another sequence, so a later free or drop cannot release it twice.

Fields

§

SaveSequenceState

2026-09-25: Stream a sequence’s device state into writer (spill).

Fields

§seq: &'a S
§writer: &'a mut dyn Write
§

ReadLogits

2026-09-25: Copy the logits block logits (rows rows) to the host.

Fields

§logits: P
§rows: usize
§into: &'a mut Vec<u8>
§

MarconiCheckpoint

2026-09-25: Block-aligned Marconi SSM checkpoint after a decode step.

Fields

§

SsmSnapshotSave

Fields

§seq: &'a S
§slot: usize
§

SsmSnapshotRestore

Fields

§seq: &'a S
§slot: usize
§

SaveHiddenCatchup

2026-09-25: save_hidden_for_catchup(row, pos): copy row row’s hidden into the MTP catch-up ring at label pos.

Fields

§row: usize
§pos: usize
§

SyncSecondary

2026-09-25: Make the default stream wait for the secondary stream.

§

EpShutdown

2026-09-25: Every worker slot down.

§

Quiesce

2026-09-25: Synchronise stream before teardown.

Fields

§stream: u64
§

ReserveKv

2026-09-25: Make sure the KV block for the sequence’s next decode position exists before a step is launched ahead of the host; answers Reserved with the blocks it added (0 when the block was already there) or Exhausted when the allocation fails.

Fields

§

Rollback

2026-09-25: The over-run of a fed step was discarded for this sequence: release the blocks the latest ReserveKv added for it. Only a router that reserves ahead supports it; the synchronous router returns an error.

Fields

Trait Implementations§

Source§

impl<S, P> Label for Effect<'_, S, P>

Source§

fn label(&self) -> String

Auto Trait Implementations§

§

impl<'a, S, P> Freeze for Effect<'a, S, P>
where P: Freeze,

§

impl<'a, S, P> !RefUnwindSafe for Effect<'a, S, P>

§

impl<'a, S, P> !Send for Effect<'a, S, P>

§

impl<'a, S, P> !Sync for Effect<'a, S, P>

§

impl<'a, S, P> Unpin for Effect<'a, S, P>
where P: Unpin,

§

impl<'a, S, P> !UnwindSafe for Effect<'a, S, P>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.