Struct bee_api_types::dtos::HeartbeatDto
source · [−]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: u32pruned_milestone_index: u32latest_milestone_index: u32connected_peers: u8synced_peers: u8Trait Implementations
sourceimpl Clone for HeartbeatDto
impl Clone for HeartbeatDto
sourcefn clone(&self) -> HeartbeatDto
fn clone(&self) -> HeartbeatDto
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for HeartbeatDto
impl Debug for HeartbeatDto
sourceimpl Default for HeartbeatDto
impl Default for HeartbeatDto
sourcefn default() -> HeartbeatDto
fn default() -> HeartbeatDto
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for HeartbeatDto
impl<'de> Deserialize<'de> for HeartbeatDto
sourcefn 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
sourceimpl PartialEq<HeartbeatDto> for HeartbeatDto
impl PartialEq<HeartbeatDto> for HeartbeatDto
sourcefn eq(&self, other: &HeartbeatDto) -> bool
fn eq(&self, other: &HeartbeatDto) -> bool
sourceimpl Serialize for HeartbeatDto
impl Serialize for HeartbeatDto
impl Eq for HeartbeatDto
impl StructuralEq for HeartbeatDto
impl StructuralPartialEq for HeartbeatDto
Auto Trait Implementations
impl RefUnwindSafe for HeartbeatDto
impl Send for HeartbeatDto
impl Sync for HeartbeatDto
impl Unpin for HeartbeatDto
impl UnwindSafe for HeartbeatDto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more