pub enum SpawnError {
MaxAgentsReached {
max: usize,
},
DepthLimitReached {
max: i32,
attempted: i32,
},
AlreadyExists,
}Expand description
Errors that can occur during spawn attempts.
Variants§
MaxAgentsReached
Spawning would exceed the maximum number of sub-agents.
DepthLimitReached
Spawning would exceed the maximum agent nesting depth.
AlreadyExists
An agent with this path already exists.
Trait Implementations§
Source§impl Clone for SpawnError
impl Clone for SpawnError
Source§fn clone(&self) -> SpawnError
fn clone(&self) -> SpawnError
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 moreSource§impl Debug for SpawnError
impl Debug for SpawnError
Source§impl Display for SpawnError
impl Display for SpawnError
impl Eq for SpawnError
Source§impl PartialEq for SpawnError
impl PartialEq for SpawnError
impl StructuralPartialEq for SpawnError
Auto Trait Implementations§
impl Freeze for SpawnError
impl RefUnwindSafe for SpawnError
impl Send for SpawnError
impl Sync for SpawnError
impl Unpin for SpawnError
impl UnsafeUnpin for SpawnError
impl UnwindSafe for SpawnError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.