pub struct StepWarning<T, S: EngineSpec> {
pub output: T,
pub message: Cow<'static, str>,
pub metadata: Option<S::CompletionMetadata>,
}Fields§
§output: TThe output of the step.
message: Cow<'static, str>A message associated with this result.
metadata: Option<S::CompletionMetadata>Optional metadata associated with this step.
Implementations§
Source§impl<T, S: EngineSpec> StepWarning<T, S>
impl<T, S: EngineSpec> StepWarning<T, S>
Sourcepub fn new(output: T, message: impl Into<Cow<'static, str>>) -> Self
pub fn new(output: T, message: impl Into<Cow<'static, str>>) -> Self
Creates a new StepWarning.
Sourcepub fn with_metadata(self, metadata: S::CompletionMetadata) -> Self
pub fn with_metadata(self, metadata: S::CompletionMetadata) -> Self
Adds metadata to this step.
Sourcepub fn build(self) -> StepResult<T, S>
pub fn build(self) -> StepResult<T, S>
Creates a StepResult from this StepWarning.
Trait Implementations§
Source§impl<T, S: EngineSpec> Debug for StepWarning<T, S>where
T: Debug,
impl<T, S: EngineSpec> Debug for StepWarning<T, S>where
T: Debug,
Source§impl<T, S: EngineSpec> From<StepWarning<T, S>> for Result<StepResult<T, S>, S::Error>
impl<T, S: EngineSpec> From<StepWarning<T, S>> for Result<StepResult<T, S>, S::Error>
Source§fn from(value: StepWarning<T, S>) -> Self
fn from(value: StepWarning<T, S>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T, S> Freeze for StepWarning<T, S>
impl<T, S> RefUnwindSafe for StepWarning<T, S>
impl<T, S> Send for StepWarning<T, S>where
T: Send,
impl<T, S> Sync for StepWarning<T, S>where
T: Sync,
impl<T, S> Unpin for StepWarning<T, S>
impl<T, S> UnsafeUnpin for StepWarning<T, S>
impl<T, S> UnwindSafe for StepWarning<T, S>
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