[][src]Struct poldercast::custom_layers::RandomDirectConnections

pub struct RandomDirectConnections { /* fields omitted */ }

module responsible to select some random nodes that are not publicly reachable but that are directly connected to us.

This layer selects node for event propagation, but not for gossiping.

Implementations

impl RandomDirectConnections[src]

pub fn with_max_view_length(max_view_length: usize) -> Self[src]

create a RandomDirectConnections layer that will select some random nodes to propagate event. Nodes that are directly connected to our node but without being publicly reachable

Trait Implementations

impl Clone for RandomDirectConnections[src]

impl Debug for RandomDirectConnections[src]

impl Default for RandomDirectConnections[src]

impl Layer for RandomDirectConnections[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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,