pub struct ProcessingStepOutput { /* private fields */ }Expand description
Output from a processing step execution
Implementations§
Source§impl ProcessingStepOutput
impl ProcessingStepOutput
Sourcepub fn new(handle: ResultHandle, duration: Duration) -> Self
pub fn new(handle: ResultHandle, duration: Duration) -> Self
Create output from a result handle
Sourcepub fn empty(step_name: &str, duration: Duration) -> Self
pub fn empty(step_name: &str, duration: Duration) -> Self
Create an empty output (for skipped steps)
Sourcepub fn handle(&self) -> &ResultHandle
pub fn handle(&self) -> &ResultHandle
Get the result handle
Sourcepub fn into_handle(self) -> ResultHandle
pub fn into_handle(self) -> ResultHandle
Take ownership of the result handle
Sourcepub fn duration_ms(&self) -> u64
pub fn duration_ms(&self) -> u64
Get duration in milliseconds
Trait Implementations§
Source§impl Clone for ProcessingStepOutput
impl Clone for ProcessingStepOutput
Source§fn clone(&self) -> ProcessingStepOutput
fn clone(&self) -> ProcessingStepOutput
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProcessingStepOutput
impl RefUnwindSafe for ProcessingStepOutput
impl Send for ProcessingStepOutput
impl Sync for ProcessingStepOutput
impl Unpin for ProcessingStepOutput
impl UnwindSafe for ProcessingStepOutput
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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 more