pub struct HeartbeatDto {
pub solid_milestone_index: u32,
pub pruned_milestone_index: u32,
pub latest_milestone_index: u32,
pub connected_peers: u8,
pub synced_peers: u8,
}Expand description
Describes the heartbeat of a node.
Fields§
§solid_milestone_index: u32§pruned_milestone_index: u32§latest_milestone_index: u32§connected_peers: u8§synced_peers: u8Trait Implementations§
Source§impl Clone for HeartbeatDto
impl Clone for HeartbeatDto
Source§fn clone(&self) -> HeartbeatDto
fn clone(&self) -> HeartbeatDto
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 HeartbeatDto
impl Debug for HeartbeatDto
Source§impl Default for HeartbeatDto
impl Default for HeartbeatDto
Source§fn default() -> HeartbeatDto
fn default() -> HeartbeatDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HeartbeatDto
impl<'de> Deserialize<'de> for HeartbeatDto
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 HeartbeatDto
impl PartialEq for HeartbeatDto
Source§impl Serialize for HeartbeatDto
impl Serialize for HeartbeatDto
impl Eq for HeartbeatDto
impl StructuralPartialEq for HeartbeatDto
Auto Trait Implementations§
impl Freeze for HeartbeatDto
impl RefUnwindSafe for HeartbeatDto
impl Send for HeartbeatDto
impl Sync for HeartbeatDto
impl Unpin for HeartbeatDto
impl UnwindSafe for HeartbeatDto
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