pub struct ToolLatency {
pub name: String,
pub elapsed: Duration,
pub success: bool,
}Expand description
A recorded tool-call latency measurement.
Fields§
§name: StringTool name.
elapsed: DurationElapsed wall-clock time.
success: boolWhether the tool call succeeded.
Trait Implementations§
Source§impl Clone for ToolLatency
impl Clone for ToolLatency
Source§fn clone(&self) -> ToolLatency
fn clone(&self) -> ToolLatency
Returns a duplicate of the value. Read more
1.0.0 · Source§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 ToolLatency
impl RefUnwindSafe for ToolLatency
impl Send for ToolLatency
impl Sync for ToolLatency
impl Unpin for ToolLatency
impl UnwindSafe for ToolLatency
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