pub struct ToolProgressReporter { /* private fields */ }Expand description
Cloneable ordered progress handle bound to one physical attempt.
Concurrent emissions are rejected because async completion order cannot be inferred safely. Dropping an in-flight emission future or observing a sink failure permanently poisons the reporter, preventing gaps from being hidden by later events.
Implementations§
Source§impl ToolProgressReporter
impl ToolProgressReporter
Sourcepub const fn provenance(&self) -> &ToolProgressProvenance
pub const fn provenance(&self) -> &ToolProgressProvenance
Returns exact invocation provenance attached to emitted events.
Sourcepub const fn maximum_events(&self) -> ExecutionCount
pub const fn maximum_events(&self) -> ExecutionCount
Returns the finite descriptor event ceiling.
Sourcepub fn emit(
&self,
update: ToolProgressUpdate,
) -> BoxFuture<'_, Result<ToolProgressEvent, ToolProgressError>>
pub fn emit( &self, update: ToolProgressUpdate, ) -> BoxFuture<'_, Result<ToolProgressEvent, ToolProgressError>>
Emits one strictly increasing progress observation.
§Errors
Returns ToolProgressError for concurrency, non-monotonic values,
total changes, exhaustion, poisoned state, or a runtime sink failure.
Trait Implementations§
Source§impl Clone for ToolProgressReporter
impl Clone for ToolProgressReporter
Auto Trait Implementations§
impl !RefUnwindSafe for ToolProgressReporter
impl !UnwindSafe for ToolProgressReporter
impl Forget for ToolProgressReporter
impl Freeze for ToolProgressReporter
impl Move for ToolProgressReporter
impl Send for ToolProgressReporter
impl Sync for ToolProgressReporter
impl Unpin for ToolProgressReporter
impl UnsafeUnpin for ToolProgressReporter
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