pub struct Discovery { /* private fields */ }Implementations§
Source§impl Discovery
impl Discovery
pub fn new() -> Self
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn seeding_due(&self, now: Instant) -> bool
pub fn mark_seeded(&mut self, now: Instant)
pub fn drought_warns(&mut self, now: Instant) -> bool
pub fn offer_seeded(&mut self, addresses: Vec<SocketAddr>)
pub fn readmit(&mut self, addresses: Vec<SocketAddr>)
pub fn offer_gossip(&mut self, address: SocketAddr)
pub fn dropped(&mut self, address: SocketAddr, now: Instant)
pub fn redial_pending(&self) -> usize
pub fn next(&mut self, now: Instant) -> Next
pub fn ban(&mut self, ip: IpAddr)
pub fn unreachable_v6(&mut self)
pub fn skips_v6(&self) -> bool
Auto Trait Implementations§
impl Freeze for Discovery
impl RefUnwindSafe for Discovery
impl Send for Discovery
impl Sync for Discovery
impl Unpin for Discovery
impl UnsafeUnpin for Discovery
impl UnwindSafe for Discovery
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