pub struct TopicDiscoveryHandle { /* private fields */ }Implementations§
Source§impl TopicDiscoveryHandle
impl TopicDiscoveryHandle
pub fn stop(&self)
pub fn is_running(&self) -> bool
pub async fn has_connections(&self) -> bool
pub async fn added_connection_count(&self) -> usize
Sourcepub async fn added_neighbors(&self) -> HashSet<EndpointId>
pub async fn added_neighbors(&self) -> HashSet<EndpointId>
Adds new neighbors as soon as a path is available. NOTE: does NOT remove neighbors that go down
Trait Implementations§
Source§impl Debug for TopicDiscoveryHandle
impl Debug for TopicDiscoveryHandle
Source§impl Drop for TopicDiscoveryHandle
impl Drop for TopicDiscoveryHandle
Auto Trait Implementations§
impl !RefUnwindSafe for TopicDiscoveryHandle
impl !UnwindSafe for TopicDiscoveryHandle
impl Freeze for TopicDiscoveryHandle
impl Send for TopicDiscoveryHandle
impl Sync for TopicDiscoveryHandle
impl Unpin for TopicDiscoveryHandle
impl UnsafeUnpin for TopicDiscoveryHandle
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
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more