[][src]Struct poldercast::Topology

pub struct Topology { /* fields omitted */ }

Methods

impl Topology[src]

pub fn new(profile: NodeProfile) -> Self[src]

pub fn profile(&self) -> &NodeProfile[src]

pub fn add_layer<L>(&mut self, layer: L) where
    L: Layer + Send + Sync + 'static, 
[src]

pub fn set_policy<P>(&mut self, policy: P) where
    P: Policy + Send + Sync + 'static, 
[src]

pub fn view(&mut self, from: Option<Id>, selection: Selection) -> Vec<NodeInfo>[src]

pub fn initiate_gossips(&mut self, with: Id) -> Gossips[src]

pub fn force_reset_layers(&mut self)[src]

reset the layers, allowing an update of the internal state

pub fn accept_gossips(&mut self, from: Id, gossips: Gossips)[src]

pub fn exchange_gossips(&mut self, with: Id, gossips: Gossips) -> Gossips[src]

pub fn update_node<F>(&mut self, id: Id, update: F) -> Option<PolicyReport> where
    F: FnOnce(&mut Node), 
[src]

pub fn nodes(&self) -> &Nodes[src]

function to access the nodes data structure. From there it is possible to query the available nodes, the non-publicly-reachable nodes and the quarantined nodes.

Auto Trait Implementations

impl Send for Topology

impl Sync for Topology

impl Unpin for Topology

impl !UnwindSafe for Topology

impl !RefUnwindSafe for Topology

Blanket Implementations

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 = !

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self