pub enum Destinations {
Public,
Any,
}Expand description
Which addresses the client may connect to.
Variants§
Public
Public addresses only.
The client refuses an address written in a URL that is not public, and a name that resolves to any address that is not public. On a network with NAT64, it also reads the IPv4 address inside an IPv6 address, because the connection ends there.
The client connects directly and ignores proxy settings from the environment. A proxy resolves names where this check cannot see them.
Any
Any address.
Use it for a registry mirror on your own network, or a test server on
127.0.0.1. Do not use it to read records from registries you do not run.
Trait Implementations§
Source§impl Clone for Destinations
impl Clone for Destinations
Source§fn clone(&self) -> Destinations
fn clone(&self) -> Destinations
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Destinations
Source§impl Debug for Destinations
impl Debug for Destinations
Source§impl Default for Destinations
impl Default for Destinations
Source§fn default() -> Destinations
fn default() -> Destinations
Returns the “default value” for a type. Read more
impl Eq for Destinations
Source§impl PartialEq for Destinations
impl PartialEq for Destinations
impl StructuralPartialEq for Destinations
Auto Trait Implementations§
impl Freeze for Destinations
impl RefUnwindSafe for Destinations
impl Send for Destinations
impl Sync for Destinations
impl Unpin for Destinations
impl UnsafeUnpin for Destinations
impl UnwindSafe for Destinations
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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