pub struct NodeStatus {
pub is_healthy: bool,
pub is_synced: bool,
pub is_almost_synced: bool,
pub latest_milestone: Milestone,
pub confirmed_milestone: Milestone,
pub current_protocol_parameters: ProtocolParameters,
pub tangle_pruning_index: MilestoneIndex,
pub milestones_pruning_index: MilestoneIndex,
pub ledger_pruning_index: MilestoneIndex,
pub ledger_index: MilestoneIndex,
}Expand description
The NodeStatus type.
Fields§
§is_healthy: boolSignals if the node is healthy.
is_synced: boolSignals if the node is synced.
is_almost_synced: boolSignals if the node is almost synced (within a configured range).
latest_milestone: MilestoneThe latest milestone seen by the node.
confirmed_milestone: MilestoneThe last confirmed milestone.
current_protocol_parameters: ProtocolParametersThe current protocol parameters.
tangle_pruning_index: MilestoneIndexThe tangle pruning index of the node.
milestones_pruning_index: MilestoneIndexThe milestones pruning index of the node.
ledger_pruning_index: MilestoneIndexThe ledger pruning index of the node.
ledger_index: MilestoneIndexThe ledger index of the node.
Trait Implementations§
Source§impl Clone for NodeStatus
impl Clone for NodeStatus
Source§fn clone(&self) -> NodeStatus
fn clone(&self) -> NodeStatus
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 NodeStatus
impl Debug for NodeStatus
Source§impl From<NodeStatus> for NodeStatus
impl From<NodeStatus> for NodeStatus
Source§fn from(value: NodeStatus) -> Self
fn from(value: NodeStatus) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NodeStatus
impl PartialEq for NodeStatus
Source§impl TryFrom<NodeStatus> for NodeStatus
impl TryFrom<NodeStatus> for NodeStatus
impl Eq for NodeStatus
impl StructuralPartialEq for NodeStatus
Auto Trait Implementations§
impl Freeze for NodeStatus
impl RefUnwindSafe for NodeStatus
impl Send for NodeStatus
impl Sync for NodeStatus
impl Unpin for NodeStatus
impl UnwindSafe for NodeStatus
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request