pub enum ChainSeparator {
NotFoundOnly,
AnyError,
}Expand description
Which fallback rule governs a GOPROXY chain hop’s failure (spec 034 S2).
go help goproxy and Go’s own modfetch/proxy.go give , and | genuinely different
semantics — this crate’s ,-and-|-both-fall-through-on-not-found first cut collapsed
that distinction; see GoRegistry::get_versions_chained
(registry.rs) for where this is consulted.
Variants§
NotFoundOnly
,: fall through to the next hop only on an explicit not-found response (404/410)
— a transport failure (timeout, connection error, 5xx) is terminal for the whole
chain.
AnyError
|: fall through to the next hop on any error, including a transport failure.
Trait Implementations§
Source§impl Clone for ChainSeparator
impl Clone for ChainSeparator
Source§fn clone(&self) -> ChainSeparator
fn clone(&self) -> ChainSeparator
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 ChainSeparator
Source§impl Debug for ChainSeparator
impl Debug for ChainSeparator
impl Eq for ChainSeparator
Source§impl PartialEq for ChainSeparator
impl PartialEq for ChainSeparator
Source§fn eq(&self, other: &ChainSeparator) -> bool
fn eq(&self, other: &ChainSeparator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChainSeparator
Auto Trait Implementations§
impl Freeze for ChainSeparator
impl RefUnwindSafe for ChainSeparator
impl Send for ChainSeparator
impl Sync for ChainSeparator
impl Unpin for ChainSeparator
impl UnsafeUnpin for ChainSeparator
impl UnwindSafe for ChainSeparator
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.