[][src]Struct in3_sys::in3_node_weight

#[repr(C)]pub struct in3_node_weight {
    pub response_count: u32,
    pub total_response_time: u32,
    pub blacklisted_until: u64,
}

Weight or reputation of a node.

Based on the past performance of the node a weight is calculated given faster nodes a higher weight and chance when selecting the next node from the nodelist. These weights will also be stored in the cache (if available)

Fields

response_count: u32

< counter for responses

total_response_time: u32

< total of all response times

blacklisted_until: u64

< if >0 this node is blacklisted until k. k is a unix timestamp

Trait Implementations

impl Clone for in3_node_weight[src]

impl Copy for in3_node_weight[src]

impl Debug for in3_node_weight[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.