pub struct DiagnosticContext { /* private fields */ }Expand description
Validated provider and operation context for one lifecycle event.
Implementations§
Source§impl DiagnosticContext
impl DiagnosticContext
Sourcepub const fn provider(self) -> ProviderId
pub const fn provider(self) -> ProviderId
Returns the validated provider identifier.
Sourcepub const fn service(self) -> ServiceId
pub const fn service(self) -> ServiceId
Returns the validated provider-owned service identifier.
Sourcepub const fn operation(self) -> Option<OperationId>
pub const fn operation(self) -> Option<OperationId>
Returns the provider operation identifier when one was bound.
Sourcepub const fn impact(self) -> OperationImpact
pub const fn impact(self) -> OperationImpact
Returns the validated operation impact.
Sourcepub const fn retry(self) -> DiagnosticRetryCategory
pub const fn retry(self) -> DiagnosticRetryCategory
Returns the operation retry category.
Trait Implementations§
Source§impl Clone for DiagnosticContext
impl Clone for DiagnosticContext
Source§fn clone(&self) -> DiagnosticContext
fn clone(&self) -> DiagnosticContext
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 moreimpl Copy for DiagnosticContext
Source§impl Debug for DiagnosticContext
impl Debug for DiagnosticContext
impl Eq for DiagnosticContext
Source§impl Hash for DiagnosticContext
impl Hash for DiagnosticContext
Source§impl Ord for DiagnosticContext
impl Ord for DiagnosticContext
Source§fn cmp(&self, other: &DiagnosticContext) -> Ordering
fn cmp(&self, other: &DiagnosticContext) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DiagnosticContext
impl PartialEq for DiagnosticContext
Source§impl PartialOrd for DiagnosticContext
impl PartialOrd for DiagnosticContext
impl StructuralPartialEq for DiagnosticContext
Auto Trait Implementations§
impl Freeze for DiagnosticContext
impl RefUnwindSafe for DiagnosticContext
impl Send for DiagnosticContext
impl Sync for DiagnosticContext
impl Unpin for DiagnosticContext
impl UnsafeUnpin for DiagnosticContext
impl UnwindSafe for DiagnosticContext
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