[−][src]Struct poldercast::Topology
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]
L: Layer + Send + Sync + 'static,
pub fn set_policy<P>(&mut self, policy: P) where
P: Policy + Send + Sync + 'static,
[src]
P: Policy + Send + Sync + 'static,
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]
F: FnOnce(&mut Node),
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self