pub struct RunStopReason { /* private fields */ }Expand description
Structured, bounded reason that ended a run.
Implementations§
Source§impl RunStopReason
impl RunStopReason
Sourcepub fn new(
code: RunStopCode,
detail: impl Into<String>,
) -> Result<RunStopReason, RunReportError>
pub fn new( code: RunStopCode, detail: impl Into<String>, ) -> Result<RunStopReason, RunReportError>
Creates a bounded stop reason.
Sourcepub const fn code(&self) -> RunStopCode
pub const fn code(&self) -> RunStopCode
Returns the stable stop classification.
Trait Implementations§
Source§impl Clone for RunStopReason
impl Clone for RunStopReason
Source§fn clone(&self) -> RunStopReason
fn clone(&self) -> RunStopReason
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 moreSource§impl Debug for RunStopReason
impl Debug for RunStopReason
Source§impl<'de> Deserialize<'de> for RunStopReason
impl<'de> Deserialize<'de> for RunStopReason
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunStopReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunStopReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunStopReason
Source§impl PartialEq for RunStopReason
impl PartialEq for RunStopReason
Source§impl Serialize for RunStopReason
impl Serialize for RunStopReason
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RunStopReason
Source§impl TryFrom<RunStopReasonWire> for RunStopReason
impl TryFrom<RunStopReasonWire> for RunStopReason
Source§type Error = RunReportError
type Error = RunReportError
The type returned in the event of a conversion error.
Source§fn try_from(
value: RunStopReasonWire,
) -> Result<RunStopReason, <RunStopReason as TryFrom<RunStopReasonWire>>::Error>
fn try_from( value: RunStopReasonWire, ) -> Result<RunStopReason, <RunStopReason as TryFrom<RunStopReasonWire>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RunStopReason
impl RefUnwindSafe for RunStopReason
impl Send for RunStopReason
impl Sync for RunStopReason
impl Unpin for RunStopReason
impl UnsafeUnpin for RunStopReason
impl UnwindSafe for RunStopReason
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more