pub struct StartFailHandler {
pub reason: &'static str,
}Expand description
Handler that always fails at start (tests).
Fields§
§reason: &'static strRejection message.
Trait Implementations§
Source§impl Debug for StartFailHandler
impl Debug for StartFailHandler
Source§impl Default for StartFailHandler
impl Default for StartFailHandler
Source§fn default() -> StartFailHandler
fn default() -> StartFailHandler
Returns the “default value” for a type. Read more
Source§impl ToolHandler for StartFailHandler
impl ToolHandler for StartFailHandler
Source§fn start(
&self,
_call: ToolCall,
_context: ToolCallContext,
) -> Result<LinkedToolExecutionHandle, ToolStartError>
fn start( &self, _call: ToolCall, _context: ToolCallContext, ) -> Result<LinkedToolExecutionHandle, ToolStartError>
Start one execution. Must return a handle with a single completion.
Source§fn supports_abort(&self) -> bool
fn supports_abort(&self) -> bool
Whether cooperative/abort cancellation is honored (D-024 / D-028).
Default false (fail-closed): capability booleans must not self-assert.
Source§fn supports_isolated_kill(&self) -> bool
fn supports_isolated_kill(&self) -> bool
Whether isolated kill after grace is available (D-024 / D-028).
Default false (fail-closed); requires a structural
ToolKillHandle.Auto Trait Implementations§
impl Freeze for StartFailHandler
impl RefUnwindSafe for StartFailHandler
impl Send for StartFailHandler
impl Sync for StartFailHandler
impl Unpin for StartFailHandler
impl UnsafeUnpin for StartFailHandler
impl UnwindSafe for StartFailHandler
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