pub struct RunStepReport { /* private fields */ }Expand description
One attempted phase or semantic action.
Implementations§
Source§impl RunStepReport
impl RunStepReport
Sourcepub fn new(
ordinal: u32,
action_id: impl Into<String>,
status: RunStepStatus,
duration_ms: u64,
detail: Option<String>,
) -> Result<RunStepReport, RunReportError>
pub fn new( ordinal: u32, action_id: impl Into<String>, status: RunStepStatus, duration_ms: u64, detail: Option<String>, ) -> Result<RunStepReport, RunReportError>
Creates a bounded step report.
Sourcepub const fn status(&self) -> RunStepStatus
pub const fn status(&self) -> RunStepStatus
Returns the completion state.
Sourcepub const fn duration_ms(&self) -> u64
pub const fn duration_ms(&self) -> u64
Returns the observed duration.
Trait Implementations§
Source§impl Clone for RunStepReport
impl Clone for RunStepReport
Source§fn clone(&self) -> RunStepReport
fn clone(&self) -> RunStepReport
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 RunStepReport
impl Debug for RunStepReport
Source§impl<'de> Deserialize<'de> for RunStepReport
impl<'de> Deserialize<'de> for RunStepReport
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunStepReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RunStepReport, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RunStepReport
Source§impl PartialEq for RunStepReport
impl PartialEq for RunStepReport
Source§impl Serialize for RunStepReport
impl Serialize for RunStepReport
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 RunStepReport
Source§impl TryFrom<RunStepReportWire> for RunStepReport
impl TryFrom<RunStepReportWire> for RunStepReport
Source§type Error = RunReportError
type Error = RunReportError
The type returned in the event of a conversion error.
Source§fn try_from(
value: RunStepReportWire,
) -> Result<RunStepReport, <RunStepReport as TryFrom<RunStepReportWire>>::Error>
fn try_from( value: RunStepReportWire, ) -> Result<RunStepReport, <RunStepReport as TryFrom<RunStepReportWire>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for RunStepReport
impl RefUnwindSafe for RunStepReport
impl Send for RunStepReport
impl Sync for RunStepReport
impl Unpin for RunStepReport
impl UnsafeUnpin for RunStepReport
impl UnwindSafe for RunStepReport
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