pub struct ServerFailure {
pub identity: NotificationIdentity,
pub retryable: bool,
/* private fields */
}Expand description
A syntactically bounded remote failure. Unknown codes remain available explicitly but never appear in diagnostic formatting or acquire automatic retry authority.
Fields§
§identity: NotificationIdentity§retryable: boolImplementations§
Source§impl ServerFailure
impl ServerFailure
pub fn code(&self) -> &str
pub fn known_kind(&self) -> Option<NotificationFailureKind>
Trait Implementations§
Source§impl Clone for ServerFailure
impl Clone for ServerFailure
Source§impl Debug for ServerFailure
impl Debug for ServerFailure
impl Eq for ServerFailure
Source§impl PartialEq for ServerFailure
impl PartialEq for ServerFailure
impl StructuralPartialEq for ServerFailure
Auto Trait Implementations§
impl Freeze for ServerFailure
impl RefUnwindSafe for ServerFailure
impl Send for ServerFailure
impl Sync for ServerFailure
impl Unpin for ServerFailure
impl UnsafeUnpin for ServerFailure
impl UnwindSafe for ServerFailure
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