pub struct NodeMetrics {
pub fingerprint: String,
pub in_degree: i64,
pub out_degree: i64,
pub total_degree: i64,
}
Expand description
Represents metrics for an individual node (relay) in the graph
Fields§
§fingerprint: String
§in_degree: i64
§out_degree: i64
§total_degree: i64
Trait Implementations§
source§impl Clone for NodeMetrics
impl Clone for NodeMetrics
source§fn clone(&self) -> NodeMetrics
fn clone(&self) -> NodeMetrics
Returns a copy 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 NodeMetrics
impl Debug for NodeMetrics
source§impl PartialEq for NodeMetrics
impl PartialEq for NodeMetrics
impl StructuralPartialEq for NodeMetrics
Auto Trait Implementations§
impl Freeze for NodeMetrics
impl RefUnwindSafe for NodeMetrics
impl Send for NodeMetrics
impl Sync for NodeMetrics
impl Unpin for NodeMetrics
impl UnwindSafe for NodeMetrics
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)