Enum conjure_runtime::ServerQos
source · #[non_exhaustive]pub enum ServerQos {
AutomaticRetry,
Propagate429And503ToCaller,
}
Expand description
Specifies the behavior of a client in response to a QoS
error from a server.
QoS errors have status codes 429 or 503.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AutomaticRetry
The client will automatically retry the request when possible in response to a QoS error.
This is the default behavior.
Propagate429And503ToCaller
The client will transparently propagate the QoS error without retrying.
This is designed for use when an upstream service has better context on how to handle a QoS error. Propagating the error upstream to that service without retrying allows it to handle retry logic internally.
Trait Implementations§
source§impl PartialEq for ServerQos
impl PartialEq for ServerQos
impl Copy for ServerQos
impl Eq for ServerQos
impl StructuralPartialEq for ServerQos
Auto Trait Implementations§
impl Freeze for ServerQos
impl RefUnwindSafe for ServerQos
impl Send for ServerQos
impl Sync for ServerQos
impl Unpin for ServerQos
impl UnwindSafe for ServerQos
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<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<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.