pub struct StateSyncMessage {
pub header: Header,
pub snapshots: Snapshot,
pub deltas: Option<BlockChanges>,
pub removed_components: HashMap<String, ProtocolComponent>,
}Fields§
§header: HeaderThe 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§
Trait Implementations§
Source§impl Clone for StateSyncMessage
impl Clone for StateSyncMessage
Source§fn clone(&self) -> StateSyncMessage
fn clone(&self) -> StateSyncMessage
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 Debug for StateSyncMessage
impl Debug for StateSyncMessage
Source§impl Default for StateSyncMessage
impl Default for StateSyncMessage
Source§fn default() -> StateSyncMessage
fn default() -> StateSyncMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StateSyncMessage
impl<'de> Deserialize<'de> for StateSyncMessage
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 PartialEq for StateSyncMessage
impl PartialEq for StateSyncMessage
Source§impl Serialize for StateSyncMessage
impl Serialize for StateSyncMessage
impl StructuralPartialEq for StateSyncMessage
Auto Trait Implementations§
impl !Freeze for StateSyncMessage
impl RefUnwindSafe for StateSyncMessage
impl Send for StateSyncMessage
impl Sync for StateSyncMessage
impl Unpin for StateSyncMessage
impl UnwindSafe for StateSyncMessage
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