pub struct DhtDiscovery(/* private fields */);
Available on crate feature
discovery-pkarr-dht
only.Expand description
Pkarr Mainline DHT and relay server node discovery.
It stores node addresses in DNS records, signed by the node’s private key, and publishes them to the BitTorrent Mainline DHT. See the pkarr module for more details.
This implements the Discovery
trait to be used as a node discovery service which can
be used as both a publisher and resolver. Calling DhtDiscovery::publish
will start
a background task that periodically publishes the node address.
Implementations§
Source§impl DhtDiscovery
impl DhtDiscovery
Sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder for DhtDiscovery
.
Trait Implementations§
Source§impl Clone for DhtDiscovery
impl Clone for DhtDiscovery
Source§fn clone(&self) -> DhtDiscovery
fn clone(&self) -> DhtDiscovery
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DhtDiscovery
impl Debug for DhtDiscovery
Source§impl Default for DhtDiscovery
impl Default for DhtDiscovery
Auto Trait Implementations§
impl Freeze for DhtDiscovery
impl !RefUnwindSafe for DhtDiscovery
impl Send for DhtDiscovery
impl Sync for DhtDiscovery
impl Unpin for DhtDiscovery
impl !UnwindSafe for DhtDiscovery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)