pub enum SpawnRefused {
Draining,
MaxDepth,
MaxChildren,
MaxTotal,
RateExceeded,
TreeBudget,
UnknownParent,
}Expand description
Why a spawn was refused. Surfaced to the requesting agent as a tool result so its model can adapt — not an error that crashes the tree.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SpawnRefused
impl Clone for SpawnRefused
Source§fn clone(&self) -> SpawnRefused
fn clone(&self) -> SpawnRefused
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 moreimpl Copy for SpawnRefused
Source§impl Debug for SpawnRefused
impl Debug for SpawnRefused
impl Eq for SpawnRefused
Source§impl PartialEq for SpawnRefused
impl PartialEq for SpawnRefused
impl StructuralPartialEq for SpawnRefused
Auto Trait Implementations§
impl Freeze for SpawnRefused
impl RefUnwindSafe for SpawnRefused
impl Send for SpawnRefused
impl Sync for SpawnRefused
impl Unpin for SpawnRefused
impl UnsafeUnpin for SpawnRefused
impl UnwindSafe for SpawnRefused
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