pub enum ConnectivityRequest {
UpdateDiscoveredPeers(DiscoverySource, PeerSet),
GetConnectedSize(Sender<usize>),
GetDialQueueSize(Sender<usize>),
}
Expand description
Requests received by the ConnectivityManager
manager actor from upstream modules.
Variants§
UpdateDiscoveredPeers(DiscoverySource, PeerSet)
Update set of discovered peers and associated info
GetConnectedSize(Sender<usize>)
Gets current size of connected peers. This is useful in tests.
GetDialQueueSize(Sender<usize>)
Gets current size of dial queue. This is useful in tests.
Trait Implementations§
source§impl Debug for ConnectivityRequest
impl Debug for ConnectivityRequest
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectivityRequest
impl Send for ConnectivityRequest
impl Sync for ConnectivityRequest
impl Unpin for ConnectivityRequest
impl !UnwindSafe for ConnectivityRequest
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.