pub struct AgentLoopResult { /* private fields */ }Expand description
Outcome and bounded execution counters for one loop call.
Implementations§
Source§impl AgentLoopResult
impl AgentLoopResult
Sourcepub const fn outcome(&self) -> &AgentLoopOutcome
pub const fn outcome(&self) -> &AgentLoopOutcome
Returns why this bounded loop call stopped.
Sourcepub const fn report(&self) -> GraphDriveReport
pub const fn report(&self) -> GraphDriveReport
Returns replay, execution, renewal, and retry counters.
Sourcepub fn into_parts(self) -> (AgentLoopOutcome, GraphDriveReport)
pub fn into_parts(self) -> (AgentLoopOutcome, GraphDriveReport)
Consumes the result into its outcome and report.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AgentLoopResult
impl !UnwindSafe for AgentLoopResult
impl Forget for AgentLoopResult
impl Freeze for AgentLoopResult
impl Move for AgentLoopResult
impl Send for AgentLoopResult
impl Sync for AgentLoopResult
impl Unpin for AgentLoopResult
impl UnsafeUnpin for AgentLoopResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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