pub struct ValidatedState<F: Family, Op, D: Digest> {
pub state: State<F, Op, D>,
pub root: D,
pub inactivity_floor: Location<F>,
}Expand description
Compact state that has been validated against a target root.
This carries the original compact state plus the values derived while validating it. Compact database constructors still build their storage-backed Merkle state and witness cache, but they should use these values instead of re-deriving them from peer-provided state.
Fields§
§state: State<F, Op, D>The compact state fetched from a peer after validation.
root: DThe target root that state was validated against.
inactivity_floor: Location<F>The inactivity floor derived from the final commit operation.
Trait Implementations§
Source§impl<F: Clone + Family, Op: Clone, D: Clone + Digest> Clone for ValidatedState<F, Op, D>
impl<F: Clone + Family, Op: Clone, D: Clone + Digest> Clone for ValidatedState<F, Op, D>
Source§fn clone(&self) -> ValidatedState<F, Op, D>
fn clone(&self) -> ValidatedState<F, Op, D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<F, Op, D> Freeze for ValidatedState<F, Op, D>
impl<F, Op, D> RefUnwindSafe for ValidatedState<F, Op, D>
impl<F, Op, D> Send for ValidatedState<F, Op, D>where
Op: Send,
impl<F, Op, D> Sync for ValidatedState<F, Op, D>where
Op: Sync,
impl<F, Op, D> Unpin for ValidatedState<F, Op, D>
impl<F, Op, D> UnsafeUnpin for ValidatedState<F, Op, D>where
D: UnsafeUnpin,
Op: UnsafeUnpin,
impl<F, Op, D> UnwindSafe for ValidatedState<F, Op, D>
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
Converts
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>
Converts
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