pub struct StateSyncMessage<H>where
H: HeaderLike,{
pub header: H,
pub snapshots: Snapshot,
pub deltas: Option<BlockAggregatedChanges>,
pub removed_components: HashMap<String, ProtocolComponent>,
}Fields§
§header: HThe block information for this update.
snapshots: SnapshotSnapshot for new components.
deltas: Option<BlockAggregatedChanges>A single delta contains state updates for all tracked components, as well as additional information about the system components e.g. newly added components (even below tvl), tvl updates, balance updates.
removed_components: HashMap<String, ProtocolComponent>Components that stopped being tracked.
Implementations§
Source§impl<H> StateSyncMessage<H>where
H: HeaderLike,
impl<H> StateSyncMessage<H>where
H: HeaderLike,
Trait Implementations§
Source§impl<H> Clone for StateSyncMessage<H>where
H: HeaderLike + Clone,
impl<H> Clone for StateSyncMessage<H>where
H: HeaderLike + Clone,
Source§fn clone(&self) -> StateSyncMessage<H>
fn clone(&self) -> StateSyncMessage<H>
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 moreSource§impl<H> Debug for StateSyncMessage<H>where
H: HeaderLike + Debug,
impl<H> Debug for StateSyncMessage<H>where
H: HeaderLike + Debug,
Source§impl<H> Default for StateSyncMessage<H>where
H: HeaderLike + Default,
impl<H> Default for StateSyncMessage<H>where
H: HeaderLike + Default,
Source§fn default() -> StateSyncMessage<H>
fn default() -> StateSyncMessage<H>
Returns the “default value” for a type. Read more
Source§impl<H: HeaderLike> From<StateSyncMessage<H>> for StateSyncMessage<H>
impl<H: HeaderLike> From<StateSyncMessage<H>> for StateSyncMessage<H>
Source§fn from(value: StateSyncMessage<H>) -> Self
fn from(value: StateSyncMessage<H>) -> Self
Converts to this type from the input type.
Source§impl<H: HeaderLike> From<StateSyncMessage<H>> for StateSyncMessage<H>
impl<H: HeaderLike> From<StateSyncMessage<H>> for StateSyncMessage<H>
Source§fn from(value: StateSyncMessage<H>) -> Self
fn from(value: StateSyncMessage<H>) -> Self
Converts to this type from the input type.
Source§impl<H> PartialEq for StateSyncMessage<H>where
H: HeaderLike + PartialEq,
impl<H> PartialEq for StateSyncMessage<H>where
H: HeaderLike + PartialEq,
Source§fn eq(&self, other: &StateSyncMessage<H>) -> bool
fn eq(&self, other: &StateSyncMessage<H>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<H> StructuralPartialEq for StateSyncMessage<H>where
H: HeaderLike,
Auto Trait Implementations§
impl<H> !Freeze for StateSyncMessage<H>
impl<H> RefUnwindSafe for StateSyncMessage<H>where
H: RefUnwindSafe,
impl<H> Send for StateSyncMessage<H>where
H: Send,
impl<H> Sync for StateSyncMessage<H>where
H: Sync,
impl<H> Unpin for StateSyncMessage<H>where
H: Unpin,
impl<H> UnsafeUnpin for StateSyncMessage<H>where
H: UnsafeUnpin,
impl<H> UnwindSafe for StateSyncMessage<H>where
H: UnwindSafe,
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> 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