pub struct MockBarrierTool {
pub barrier: Arc<Barrier>,
}Available on crate feature
test-utils only.Expand description
A mock tool that waits at a barrier before returning "done".
Fields§
§barrier: Arc<Barrier>Barrier waited on during each tool call.
Implementations§
Trait Implementations§
Source§impl Clone for MockBarrierTool
impl Clone for MockBarrierTool
Source§fn clone(&self) -> MockBarrierTool
fn clone(&self) -> MockBarrierTool
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Tool for MockBarrierTool
impl Tool for MockBarrierTool
Source§type Error = MockToolError
type Error = MockToolError
Typed error returned by direct calls to this tool. Read more
Source§fn description(&self) -> String
fn description(&self) -> String
Model-facing description.
Source§fn parameters(&self) -> Value
fn parameters(&self) -> Value
JSON Schema for arguments.
Auto Trait Implementations§
impl Freeze for MockBarrierTool
impl RefUnwindSafe for MockBarrierTool
impl Send for MockBarrierTool
impl Sync for MockBarrierTool
impl Unpin for MockBarrierTool
impl UnsafeUnpin for MockBarrierTool
impl UnwindSafe for MockBarrierTool
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