Struct network::connectivity_manager::ConnectivityManager [−][src]
pub struct ConnectivityManager<TBackoff> { /* fields omitted */ }Expand description
The ConnectivityManager actor.
Implementations
impl<TBackoff> ConnectivityManager<TBackoff> where
TBackoff: Iterator<Item = Duration> + Clone,
impl<TBackoff> ConnectivityManager<TBackoff> where
TBackoff: Iterator<Item = Duration> + Clone,
pub fn new(
network_context: NetworkContext,
time_service: TimeService,
eligible: Arc<RwLock<PeerSet>>,
seeds: PeerSet,
connection_reqs_tx: ConnectionRequestSender,
connection_notifs_rx: Receiver,
requests_rx: Receiver<ConnectivityRequest>,
connectivity_check_interval: Duration,
backoff_strategy: TBackoff,
max_delay: Duration,
outbound_connection_limit: Option<usize>,
mutual_authentication: bool
) -> Self
pub fn new(
network_context: NetworkContext,
time_service: TimeService,
eligible: Arc<RwLock<PeerSet>>,
seeds: PeerSet,
connection_reqs_tx: ConnectionRequestSender,
connection_notifs_rx: Receiver,
requests_rx: Receiver<ConnectivityRequest>,
connectivity_check_interval: Duration,
backoff_strategy: TBackoff,
max_delay: Duration,
outbound_connection_limit: Option<usize>,
mutual_authentication: bool
) -> Self
Creates a new instance of the ConnectivityManager actor.
Starts the ConnectivityManager actor.
Auto Trait Implementations
impl<TBackoff> !RefUnwindSafe for ConnectivityManager<TBackoff>
impl<TBackoff> Send for ConnectivityManager<TBackoff> where
TBackoff: Send,
impl<TBackoff> Sync for ConnectivityManager<TBackoff> where
TBackoff: Sync,
impl<TBackoff> Unpin for ConnectivityManager<TBackoff> where
TBackoff: Unpin,
impl<TBackoff> !UnwindSafe for ConnectivityManager<TBackoff>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self