pub struct CrashBackend { /* private fields */ }Expand description
Backend that calls std::process::exit(1) after N calls.
Implementations§
Trait Implementations§
Source§impl AgentBackend for CrashBackend
impl AgentBackend for CrashBackend
Source§fn capabilities(&self) -> AgentCapabilities
fn capabilities(&self) -> AgentCapabilities
Capability declaration (v0.1: recorded/validated only; routing in v0.2).
Source§fn run<'life0, 'async_trait>(
&'life0 self,
task: AgentTask,
_ctx: RunContext,
) -> Pin<Box<dyn Future<Output = Result<AgentResult, BackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn run<'life0, 'async_trait>(
&'life0 self,
task: AgentTask,
_ctx: RunContext,
) -> Pin<Box<dyn Future<Output = Result<AgentResult, BackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Run one agent task to completion.
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Upcast hook for downcasting
&dyn AgentBackend back to a concrete
backend type. Standard Rust trait-object downcast pattern: each impl
returns self, which Any::downcast_ref then narrows to &Concrete.
No default impl is provided — Self is unsized on a trait object, so a
default body self would not compile.Auto Trait Implementations§
impl !Freeze for CrashBackend
impl RefUnwindSafe for CrashBackend
impl Send for CrashBackend
impl Sync for CrashBackend
impl Unpin for CrashBackend
impl UnsafeUnpin for CrashBackend
impl UnwindSafe for CrashBackend
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