Skip to main content

CommittedTransition

Struct CommittedTransition 

Source
pub struct CommittedTransition<Step> {
    pub record: KernelRecord,
    pub step: Step,
    pub step_seq: WireU64,
    pub checkpoint_advice: Option<CheckpointAdvice>,
}
Expand description

One durable transition, after the host’s append and this runtime’s commit.

Fields§

§record: KernelRecord§step: Step§step_seq: WireU64§checkpoint_advice: Option<CheckpointAdvice>

§12.3 · set on exactly the commit that carries the tail past its soft watermark.

Edge-triggered, not level-triggered. A level-triggered flag would be set on every commit between the watermark and the hard limit, which is precisely the window in which the host is already taking a checkpoint — so it would arrive as noise at the moment it stopped being news. Fired once per crossing, it is a fact: “the tail just went over”.

The host projects it into a §7.11 observation (Phase 6). The kernel does not push it, because a transition publishes effects or a terminal (§7.12) and advice is neither.

Implementations§

Source§

impl<Step: TransitionStep> CommittedTransition<Step>

Source

pub fn published_effects(&self) -> &[KernelEffect]

The effects this commit made visible. Before the commit there were none — §15.2’s “an effect is not visible before its record is durable” is why they are published from here rather than from prepare.

Source

pub fn terminal(&self) -> Option<&KernelTerminal>

Trait Implementations§

Source§

impl<Step: Clone> Clone for CommittedTransition<Step>

Source§

fn clone(&self) -> CommittedTransition<Step>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Step: Debug> Debug for CommittedTransition<Step>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Step: PartialEq> PartialEq for CommittedTransition<Step>

Source§

fn eq(&self, other: &CommittedTransition<Step>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<Step: PartialEq> StructuralPartialEq for CommittedTransition<Step>

Auto Trait Implementations§

§

impl<Step> Freeze for CommittedTransition<Step>
where Step: Freeze,

§

impl<Step> RefUnwindSafe for CommittedTransition<Step>
where Step: RefUnwindSafe,

§

impl<Step> Send for CommittedTransition<Step>
where Step: Send,

§

impl<Step> Sync for CommittedTransition<Step>
where Step: Sync,

§

impl<Step> Unpin for CommittedTransition<Step>
where Step: Unpin,

§

impl<Step> UnsafeUnpin for CommittedTransition<Step>
where Step: UnsafeUnpin,

§

impl<Step> UnwindSafe for CommittedTransition<Step>
where Step: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.