pub struct PreimageApplied { /* private fields */ }Expand description
Outcome of a LaneState::advance_preimage fold.
Both deltas are zero for a reveal that advanced nothing — one at or below the tracked frontier, or one naming a superseded epoch. Neither is an error: a duplicate or out-of-order reveal is ordinary under concurrent streams, and the node answers it by continuing to deliver, exactly as for an already-satisfied voucher.
Implementations§
Source§impl PreimageApplied
impl PreimageApplied
Sourcepub const ZERO: Self
pub const ZERO: Self
The reveal advanced nothing. Two cases reach it and callers treat them identically, because the answer is the same in both: the reveal was at or below the tracked frontier (already covered, and nothing was hashed to find that out), or it named an epoch the lane no longer tracks (real, but superseded by a signature that folded a frontier at least as deep).
Sourcepub const fn amount_delta(&self) -> U256
pub const fn amount_delta(&self) -> U256
Amount this reveal added to the lane’s claim.
Sourcepub const fn bytes_delta(&self) -> U256
pub const fn bytes_delta(&self) -> U256
Bytes this reveal’s steps paid for.
Trait Implementations§
Source§impl Clone for PreimageApplied
impl Clone for PreimageApplied
impl Copy for PreimageApplied
Source§impl Debug for PreimageApplied
impl Debug for PreimageApplied
impl Eq for PreimageApplied
Source§impl PartialEq for PreimageApplied
impl PartialEq for PreimageApplied
impl StructuralPartialEq for PreimageApplied
Auto Trait Implementations§
impl Freeze for PreimageApplied
impl RefUnwindSafe for PreimageApplied
impl Send for PreimageApplied
impl Sync for PreimageApplied
impl Unpin for PreimageApplied
impl UnsafeUnpin for PreimageApplied
impl UnwindSafe for PreimageApplied
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more