Struct cloudformatious::status_reason::StatusReason
source · [−]pub struct StatusReason<'a>(_);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
sourceimpl<'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
sourceimpl<'a> Clone for StatusReason<'a>
impl<'a> Clone for StatusReason<'a>
sourcefn clone(&self) -> StatusReason<'a>
fn clone(&self) -> StatusReason<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Debug for StatusReason<'a>
impl<'a> Debug for StatusReason<'a>
sourceimpl<'a> PartialEq<StatusReason<'a>> for StatusReason<'a>
impl<'a> PartialEq<StatusReason<'a>> for StatusReason<'a>
sourcefn eq(&self, other: &StatusReason<'a>) -> bool
fn eq(&self, other: &StatusReason<'a>) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl<'a> Copy for StatusReason<'a>
impl<'a> Eq for StatusReason<'a>
impl<'a> StructuralEq for StatusReason<'a>
impl<'a> StructuralPartialEq for StatusReason<'a>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more