Skip to main content

PendingBootstrapCommit

Struct PendingBootstrapCommit 

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

PendingBootstrapCommit

Pending result of a successful generic allocation bootstrap commit.

The embedded crate::LedgerCommitStore has advanced, but this generic layer does not own stable-memory IO. Persist the owning record first, then call PendingBootstrapCommit::confirm_persisted to mint the allocation-open capability.

Implementations§

Source§

impl PendingBootstrapCommit

Source

pub const fn ledger(&self) -> &AllocationLedger

Borrow the committed logical ledger for diagnostics.

The persistence owner must write the owning record that contains the mutated crate::LedgerCommitStore, not serialize this ledger DTO as a replacement protocol.

Source

pub const fn validated(&self) -> &ValidatedAllocations

Borrow the pre-commit validation result for diagnostics.

Source

pub fn confirm_persisted(self) -> CommittedAllocations

Confirm that the owning integration durably persisted this commit.

Calling this method before the stable-memory write succeeds violates the allocation protocol. The default runtime performs its stable-cell write before confirmation.

Trait Implementations§

Source§

impl Debug for PendingBootstrapCommit

Source§

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

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

impl Eq for PendingBootstrapCommit

Source§

impl PartialEq for PendingBootstrapCommit

Source§

fn eq(&self, other: &PendingBootstrapCommit) -> bool

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

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PendingBootstrapCommit

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

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

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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.