[−][src]Struct poldercast::custom_layers::RandomDirectConnections
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]
fn clone(&self) -> RandomDirectConnections
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RandomDirectConnections
[src]
impl Default for RandomDirectConnections
[src]
impl Layer for RandomDirectConnections
[src]
fn alias(&self) -> &'static str
[src]
fn reset(&mut self)
[src]
fn populate(&mut self, _identity: &NodeProfile, all_nodes: &Nodes)
[src]
fn gossips(
&mut self,
_identity: &NodeProfile,
_gossips_builder: &mut GossipsBuilder,
_all_nodes: &Nodes
)
[src]
&mut self,
_identity: &NodeProfile,
_gossips_builder: &mut GossipsBuilder,
_all_nodes: &Nodes
)
fn view(&mut self, view_builder: &mut ViewBuilder, all_nodes: &mut Nodes)
[src]
Auto Trait Implementations
impl RefUnwindSafe for RandomDirectConnections
impl Send for RandomDirectConnections
impl Sync for RandomDirectConnections
impl Unpin for RandomDirectConnections
impl UnwindSafe for RandomDirectConnections
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,