Enum rust_ipfs::p2p::DnsResolver
source · pub enum DnsResolver {
Google,
Cloudflare,
Local,
None,
}
Variants§
Google DNS Resolver
Cloudflare
Cloudflare DNS Resolver
Local
Local DNS Resolver
None
No DNS Resolver
Trait Implementations§
source§impl Clone for DnsResolver
impl Clone for DnsResolver
source§fn clone(&self) -> DnsResolver
fn clone(&self) -> DnsResolver
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 DnsResolver
impl Debug for DnsResolver
source§impl Default for DnsResolver
impl Default for DnsResolver
source§fn default() -> DnsResolver
fn default() -> DnsResolver
Returns the “default value” for a type. Read more
source§impl From<DnsResolver> for (ResolverConfig, ResolverOpts)
impl From<DnsResolver> for (ResolverConfig, ResolverOpts)
source§fn from(value: DnsResolver) -> Self
fn from(value: DnsResolver) -> Self
Converts to this type from the input type.
source§impl Hash for DnsResolver
impl Hash for DnsResolver
source§impl Ord for DnsResolver
impl Ord for DnsResolver
source§fn cmp(&self, other: &DnsResolver) -> Ordering
fn cmp(&self, other: &DnsResolver) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DnsResolver
impl PartialEq for DnsResolver
source§fn eq(&self, other: &DnsResolver) -> bool
fn eq(&self, other: &DnsResolver) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DnsResolver
impl PartialOrd for DnsResolver
source§fn partial_cmp(&self, other: &DnsResolver) -> Option<Ordering>
fn partial_cmp(&self, other: &DnsResolver) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DnsResolver
impl Eq for DnsResolver
impl StructuralEq for DnsResolver
impl StructuralPartialEq for DnsResolver
Auto Trait Implementations§
impl RefUnwindSafe for DnsResolver
impl Send for DnsResolver
impl Sync for DnsResolver
impl Unpin for DnsResolver
impl UnwindSafe for DnsResolver
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.