pub struct DnsSeed {
pub network: Network,
pub seed: &'static str,
pub filters: ServiceFlags,
}Expand description
A dns seed is a authoritative DNS server that returns the IP addresses of nodes that are likely to be accepting incoming connections. This is our preferred way of finding new peers on the first startup, as peers returned by seeds are likely to be online and accepting connections. We may use this as a fallback if we don’t have any peers to connect in subsequent startups.
Some seeds allow filtering by service flags, so we may use this to find peers that are likely to be running Utreexo, for example.
Fields§
§network: NetworkThe network this peer supports (e.g, mainnet, testnet, etc)
seed: &'static strThe domain name of the seed
filters: ServiceFlagsUseful filters we can use to find relevant peers
Implementations§
Auto Trait Implementations§
impl Freeze for DnsSeed
impl RefUnwindSafe for DnsSeed
impl Send for DnsSeed
impl Sync for DnsSeed
impl Unpin for DnsSeed
impl UnwindSafe for DnsSeed
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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