pub struct HttpNotificationError(/* private fields */);Expand description
A retained failure with content-free Display/Debug. Private transport and server diagnostics are available only through explicit accessors.
Implementations§
Source§impl HttpNotificationError
impl HttpNotificationError
pub fn kind(&self) -> Kind
pub fn code(&self) -> &'static str
pub fn timeout_stage(&self) -> Option<NotificationTimeoutStage>
pub fn protocol_error(&self) -> Option<ProtocolError>
pub fn transport_error(&self) -> Option<&Error>
pub fn server_failure(&self) -> Option<&ServerFailure>
pub fn http_status(&self) -> Option<u16>
pub fn server_code(&self) -> Option<&str>
pub fn server_message(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&NotificationRequestId>
pub fn original_failure(&self) -> Option<&Self>
pub fn last_attempt_failure(&self) -> Option<&Self>
pub fn reconnect_attempts(&self) -> Option<u32>
Trait Implementations§
Source§impl Clone for HttpNotificationError
impl Clone for HttpNotificationError
Source§impl Debug for HttpNotificationError
impl Debug for HttpNotificationError
Source§impl Display for HttpNotificationError
impl Display for HttpNotificationError
Source§impl Error for HttpNotificationError
impl Error for HttpNotificationError
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 HttpNotificationError
impl !UnwindSafe for HttpNotificationError
impl Freeze for HttpNotificationError
impl Send for HttpNotificationError
impl Sync for HttpNotificationError
impl Unpin for HttpNotificationError
impl UnsafeUnpin for HttpNotificationError
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<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more