pub struct StateSyncMessage<H>where
H: HeaderLike,{
pub header: H,
pub snapshots: Snapshot,
pub deltas: Option<BlockChanges>,
pub removed_components: HashMap<String, ProtocolComponent>,
}Fields§
§header: HThe block information for this update.
snapshots: SnapshotSnapshot for new components.
deltas: Option<BlockChanges>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 · 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<'de, H> Deserialize<'de> for StateSyncMessage<H>where
H: HeaderLike + Deserialize<'de>,
impl<'de, H> Deserialize<'de> for StateSyncMessage<H>where
H: HeaderLike + Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<H> PartialEq for StateSyncMessage<H>where
H: HeaderLike + PartialEq,
impl<H> PartialEq for StateSyncMessage<H>where
H: HeaderLike + PartialEq,
Source§impl<H> Serialize for StateSyncMessage<H>where
H: HeaderLike + Serialize,
impl<H> Serialize for StateSyncMessage<H>where
H: HeaderLike + Serialize,
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> 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