pub struct NodeStatistics {
pub failures: Option<Vec<ErrorCause>>,
pub successful: u32,
pub total: u32,
pub failed: u32,
}Fields§
§failures: Option<Vec<ErrorCause>>§successful: u32The number of nodes that responded successfully to the request.
total: u32The total number of nodes selected by the request.
failed: u32The number of nodes that rejected the request or failed to respond. If this value is not 0, then a reason for the rejection or failure is included in the response.
Implementations§
Trait Implementations§
Source§impl Clone for NodeStatistics
impl Clone for NodeStatistics
Source§fn clone(&self) -> NodeStatistics
fn clone(&self) -> NodeStatistics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeStatistics
impl Debug for NodeStatistics
Source§impl Default for NodeStatistics
impl Default for NodeStatistics
Source§fn default() -> NodeStatistics
fn default() -> NodeStatistics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeStatistics
impl<'de> Deserialize<'de> for NodeStatistics
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 NodeStatistics
impl PartialEq for NodeStatistics
Source§fn eq(&self, other: &NodeStatistics) -> bool
fn eq(&self, other: &NodeStatistics) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeStatistics
impl Serialize for NodeStatistics
impl StructuralPartialEq for NodeStatistics
Auto Trait Implementations§
impl Freeze for NodeStatistics
impl RefUnwindSafe for NodeStatistics
impl Send for NodeStatistics
impl Sync for NodeStatistics
impl Unpin for NodeStatistics
impl UnsafeUnpin for NodeStatistics
impl UnwindSafe for NodeStatistics
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