pub enum SuccessClass {
Strict,
AllowRedirects,
}Expand description
Whether to consider 3xx redirects a success outcome (most upload-style publishers do, since the underlying client follows redirects under the hood; some callers explicitly want only 2xx).
Variants§
Strict
2xx only. Any 3xx is treated as a non-success status (eligible for
retry / fast-fail per is_retriable).
AllowRedirects
2xx OR 3xx. Used by upload publishers whose servers may emit a 301/302/307 in the success path (artifactory does this for some virtual repo configurations).
Trait Implementations§
Source§impl Clone for SuccessClass
impl Clone for SuccessClass
Source§fn clone(&self) -> SuccessClass
fn clone(&self) -> SuccessClass
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 SuccessClass
impl Debug for SuccessClass
Source§impl PartialEq for SuccessClass
impl PartialEq for SuccessClass
Source§fn eq(&self, other: &SuccessClass) -> bool
fn eq(&self, other: &SuccessClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SuccessClass
impl Eq for SuccessClass
impl StructuralPartialEq for SuccessClass
Auto Trait Implementations§
impl Freeze for SuccessClass
impl RefUnwindSafe for SuccessClass
impl Send for SuccessClass
impl Sync for SuccessClass
impl Unpin for SuccessClass
impl UnsafeUnpin for SuccessClass
impl UnwindSafe for SuccessClass
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§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.