pub struct ExitTool {}
Expand description
A tool that exits the program with the given status code.
Implementations§
Trait Implementations§
Source§impl Tool for ExitTool
impl Tool for ExitTool
Source§fn invoke_typed<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 ExitToolInput,
) -> Pin<Box<dyn Future<Output = Result<ExitToolOutput, ExitToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn invoke_typed<'life0, 'life1, 'async_trait>(
&'life0 self,
input: &'life1 ExitToolInput,
) -> Pin<Box<dyn Future<Output = Result<ExitToolOutput, ExitToolError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Invokes the ExitTool
with the provided input.
Source§fn description(&self) -> ToolDescription
fn description(&self) -> ToolDescription
Returns a ToolDescription
for ExitTool
.
type Input = ExitToolInput
type Output = ExitToolOutput
type Error = ExitToolError
Auto Trait Implementations§
impl Freeze for ExitTool
impl RefUnwindSafe for ExitTool
impl Send for ExitTool
impl Sync for ExitTool
impl Unpin for ExitTool
impl UnwindSafe for ExitTool
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