pub enum QosHttpClientError {
QosRejected(RejectReason),
Transport(Error),
}Expand description
Error raised by QoS-gated outbound reqwest calls.
Variants§
QosRejected(RejectReason)
Transport(Error)
Implementations§
Source§impl QosHttpClientError
impl QosHttpClientError
Sourcepub fn is_timeout(&self) -> bool
pub fn is_timeout(&self) -> bool
Returns whether the transport layer reported a timeout.
Sourcepub fn is_qos_rejected(&self) -> bool
pub fn is_qos_rejected(&self) -> bool
Returns whether outbound admission rejected the request before I/O.
Trait Implementations§
Source§impl Debug for QosHttpClientError
impl Debug for QosHttpClientError
Source§impl Display for QosHttpClientError
impl Display for QosHttpClientError
Source§impl Error for QosHttpClientError
impl Error for QosHttpClientError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for QosHttpClientError
impl !UnwindSafe for QosHttpClientError
impl Freeze for QosHttpClientError
impl Send for QosHttpClientError
impl Sync for QosHttpClientError
impl Unpin for QosHttpClientError
impl UnsafeUnpin for QosHttpClientError
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