pub struct StatusReason<'a>(/* private fields */);Expand description
A wrapper around a status reason that offers additional detail.
This is the return type of StackEventDetails::resource_status_reason. The detail
method will attempt to parse the inner status reason into StatusReasonDetail, which can
indicate what specifically went wrong. The underlying status reason can be retrieved via
inner.
Implementations§
Source§impl<'a> StatusReason<'a>
impl<'a> StatusReason<'a>
Sourcepub fn inner(&self) -> Option<&'a str>
pub fn inner(&self) -> Option<&'a str>
The raw status reason, in case you need to work with it directly.
Sourcepub fn detail(&self) -> Option<StatusReasonDetail<'a>>
pub fn detail(&self) -> Option<StatusReasonDetail<'a>>
Additional detail about the status reason, if available.
This currently depends on some preset parsing of the status reason string for various common
error reasons. See StatusReasonDetail for current possibilities.
Trait Implementations§
Source§impl<'a> Clone for StatusReason<'a>
impl<'a> Clone for StatusReason<'a>
Source§fn clone(&self) -> StatusReason<'a>
fn clone(&self) -> StatusReason<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for StatusReason<'a>
impl<'a> Debug for StatusReason<'a>
Source§impl<'a> PartialEq for StatusReason<'a>
impl<'a> PartialEq for StatusReason<'a>
impl<'a> Copy for StatusReason<'a>
impl<'a> Eq for StatusReason<'a>
impl<'a> StructuralPartialEq for StatusReason<'a>
Auto Trait Implementations§
impl<'a> Freeze for StatusReason<'a>
impl<'a> RefUnwindSafe for StatusReason<'a>
impl<'a> Send for StatusReason<'a>
impl<'a> Sync for StatusReason<'a>
impl<'a> Unpin for StatusReason<'a>
impl<'a> UnwindSafe for StatusReason<'a>
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,
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.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 moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Creates a shared type from an unshared type.