Skip to main content

Weighted

Trait Weighted 

Source
pub trait Weighted: Send + Sync {
    // Required method
    fn weight(&self) -> u32;
}
Expand description

Exposes a weight for weighted strategies. Higher weight = more traffic.

Required Methods§

Source

fn weight(&self) -> u32

Relative weight of this node. A node with weight 4 receives roughly twice the traffic of a node with weight 2.

Implementors§