pub struct LoopDetector { /* private fields */ }Implementations§
Source§impl LoopDetector
impl LoopDetector
pub fn new(listen_addrs: BTreeSet<SocketAddr>) -> Self
Sourcepub fn would_loop(&self, target: SocketAddr) -> bool
pub fn would_loop(&self, target: SocketAddr) -> bool
Check if connecting to target would create a loop
Sourcepub async fn refresh_local_addrs(&self)
pub async fn refresh_local_addrs(&self)
Refresh local interface addresses from system interfaces.
Auto Trait Implementations§
impl Freeze for LoopDetector
impl RefUnwindSafe for LoopDetector
impl Send for LoopDetector
impl Sync for LoopDetector
impl Unpin for LoopDetector
impl UnsafeUnpin for LoopDetector
impl UnwindSafe for LoopDetector
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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