[][src]Struct in3_sys::weight

#[repr(C)]pub struct weight {
    pub node: *mut in3_node_t,
    pub weight: *mut in3_node_weight_t,
    pub s: f32,
    pub w: f32,
    pub next: *mut weight,
}

the weight of a certain node as linked list.

This will be used when picking the nodes to send the request to. A linked list of these structs desribe the result.

Fields

node: *mut in3_node_t

< the node definition including the url

weight: *mut in3_node_weight_t

< the current weight and blacklisting-stats

s: f32

< The starting value

w: f32

< weight value

next: *mut weight

< next in the linkedlist or NULL if this is the last element

Trait Implementations

impl Clone for weight[src]

impl Copy for weight[src]

impl Debug for weight[src]

Auto Trait Implementations

impl !Send for weight

impl !Sync for weight

impl Unpin for weight

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.