pub struct NoopDelegateFactory;Expand description
A no-op delegate factory that returns errors for all requests. Used when no sub-agent delegation is available.
Trait Implementations§
Source§impl DelegateFactory for NoopDelegateFactory
impl DelegateFactory for NoopDelegateFactory
Source§fn delegate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
agent_kind: &'life1 str,
_task: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delegate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
agent_kind: &'life1 str,
_task: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute a delegate action with the given agent kind and task.
Auto Trait Implementations§
impl Freeze for NoopDelegateFactory
impl RefUnwindSafe for NoopDelegateFactory
impl Send for NoopDelegateFactory
impl Sync for NoopDelegateFactory
impl Unpin for NoopDelegateFactory
impl UnsafeUnpin for NoopDelegateFactory
impl UnwindSafe for NoopDelegateFactory
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