#[non_exhaustive]pub enum BuildError {
Empty,
UnnamedAgent,
DuplicateName(String),
UnknownName(String),
NoEntry,
UnboundedCycle,
ZeroTurns,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
Nothing to run.
UnnamedAgent
A swarm agent without a name: the other agents hand off to it by name.
DuplicateName(String)
Two members share a name.
UnknownName(String)
An entry point or edge names a member that does not exist.
NoEntry
Every graph node has an incoming edge, so none is a natural start.
UnboundedCycle
A graph with a cycle and no bound on how many times nodes may run.
ZeroTurns
A turn budget of zero: an agent could not make its first model call.
Trait Implementations§
Source§impl Clone for BuildError
impl Clone for BuildError
Source§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
impl Eq for BuildError
Source§impl Error for BuildError
impl Error for BuildError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for BuildError
impl PartialEq for BuildError
impl StructuralPartialEq for BuildError
Auto Trait Implementations§
impl Forget for BuildError
impl Freeze for BuildError
impl Move for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildErrorwhere
RawVecInner: Send,
impl Sync for BuildErrorwhere
RawVecInner: Sync,
impl Unpin for BuildError
impl UnsafeUnpin for BuildError
impl UnwindSafe for BuildErrorwhere
RawVecInner: UnwindSafe,
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.