pub enum GoProxyHop {
Url(GoProxyUrl),
Direct,
Off,
}Expand description
One GOPROXY chain entry (FR-002): either a validated proxy URL, or one of the two
sentinel values go help goproxy defines.
Variants§
Url(GoProxyUrl)
A validated, fetchable proxy host.
Direct
direct: resolve straight from the VCS host — phase 1 has no direct-VCS resolution
mechanism (see this crate’s module docs / spec FR-006), so this is a fail-closed
terminal hop that never issues a network request.
Off
off: disallow all downloads for the affected module (FR-004) — a fail-closed
terminal hop, identical in observable behavior to Self::Direct.
Trait Implementations§
Source§impl Clone for GoProxyHop
impl Clone for GoProxyHop
Source§fn clone(&self) -> GoProxyHop
fn clone(&self) -> GoProxyHop
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 moreSource§impl Debug for GoProxyHop
impl Debug for GoProxyHop
impl Eq for GoProxyHop
Source§impl PartialEq for GoProxyHop
impl PartialEq for GoProxyHop
Source§fn eq(&self, other: &GoProxyHop) -> bool
fn eq(&self, other: &GoProxyHop) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GoProxyHop
Auto Trait Implementations§
impl Freeze for GoProxyHop
impl RefUnwindSafe for GoProxyHop
impl Send for GoProxyHop
impl Sync for GoProxyHop
impl Unpin for GoProxyHop
impl UnsafeUnpin for GoProxyHop
impl UnwindSafe for GoProxyHop
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,
§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
§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
§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
Compare self to
key and return true if they are equal.