pub struct FailureNarrativeGenerator { /* private fields */ }Expand description
Generator for failure narratives
Implementations§
Source§impl FailureNarrativeGenerator
impl FailureNarrativeGenerator
Sourcepub fn new(config: IntelligentBehaviorConfig) -> FailureNarrativeGenerator
pub fn new(config: IntelligentBehaviorConfig) -> FailureNarrativeGenerator
Create a new failure narrative generator
Sourcepub async fn generate_narrative(
&self,
context: &FailureContext,
) -> Result<FailureNarrative, Error>
pub async fn generate_narrative( &self, context: &FailureContext, ) -> Result<FailureNarrative, Error>
Generate a narrative explaining a failure
Auto Trait Implementations§
impl Freeze for FailureNarrativeGenerator
impl !RefUnwindSafe for FailureNarrativeGenerator
impl Send for FailureNarrativeGenerator
impl Sync for FailureNarrativeGenerator
impl Unpin for FailureNarrativeGenerator
impl UnsafeUnpin for FailureNarrativeGenerator
impl !UnwindSafe for FailureNarrativeGenerator
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
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