DflashRung

Struct DflashRung 

Source
pub struct DflashRung { /* private fields */ }
Expand description

2026-09-25: The DFlash gamma resolver. The serve builds and configures one and the scheduler context holds it (SchedCtx::dflash_rung).

Implementations§

Source§

impl DflashRung

Source

pub const fn new() -> Self

2026-09-25: Unconfigured and unarmed: drafts_for returns its input.

Source

pub fn configure(&self, cap_k: usize, explicit_flag: bool, woa_available: bool)

2026-09-25: Serve-time configuration. cap_k is the head’s widest verify width (its gamma); explicit_flag says the operator passed --dflash-gamma; woa_available says the K = 4 write-on-accept kernel is on (otherwise the C >= 2 rung is the cap). Reads the environment here.

Source

pub fn configure_with(&self, cap_k: usize, pinned: bool, r: Rungs)

2026-09-25: Resets the controller to the wide state with explicit rungs and no environment reads. It arms only when !pinned and cap_k >= 3.

Source

pub fn armed(&self) -> bool

Source

pub fn flips(&self) -> u64

2026-09-25: Single-stream switches (wide <-> narrow) so far.

Source

pub fn drafts_for(&self, n_active: usize, num_drafts: usize) -> usize

2026-09-25: The per-step draft count for n_active sequences. num_drafts is the serve’s configured count (cap - 1) and is returned unchanged when the resolver is unarmed.

Source

pub fn observe_step(&self, d1_match: bool)

2026-09-25: Scores one verify step: d1_match says the first draft was accepted. The DFlash verify step calls it every step; it does nothing unless the resolver is armed and the last dispatch was C = 1. A switch is logged when it happens.

Trait Implementations§

Source§

impl Default for DflashRung

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,