pub struct ParallelDiscoveryCoordinator { /* private fields */ }Expand description
Parallel candidate discovery coordinator
Implementations§
Source§impl ParallelDiscoveryCoordinator
impl ParallelDiscoveryCoordinator
Sourcepub fn new(config: ParallelDiscoveryConfig) -> Self
pub fn new(config: ParallelDiscoveryConfig) -> Self
Create a new parallel discovery coordinator
Sourcepub async fn start_parallel_discovery(
&mut self,
interfaces: Vec<NetworkInterface>,
peer_id: PeerId,
) -> Result<(), Box<dyn Error + Send + Sync>>
pub async fn start_parallel_discovery( &mut self, interfaces: Vec<NetworkInterface>, peer_id: PeerId, ) -> Result<(), Box<dyn Error + Send + Sync>>
Start parallel discovery across multiple interfaces
Sourcepub async fn get_all_candidates(&self) -> Vec<CandidateAddress>
pub async fn get_all_candidates(&self) -> Vec<CandidateAddress>
Get all discovered candidates from parallel discovery
Sourcepub async fn get_stats(&self) -> ParallelDiscoveryStats
pub async fn get_stats(&self) -> ParallelDiscoveryStats
Get parallel discovery statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParallelDiscoveryCoordinator
impl RefUnwindSafe for ParallelDiscoveryCoordinator
impl Send for ParallelDiscoveryCoordinator
impl Sync for ParallelDiscoveryCoordinator
impl Unpin for ParallelDiscoveryCoordinator
impl UnwindSafe for ParallelDiscoveryCoordinator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more