pub enum SwarmError {
AgentNotFound {
id: String,
},
TaskExecutionFailed {
reason: String,
},
InvalidTopology {
reason: String,
},
CommunicationError {
reason: String,
},
ResourceExhausted {
resource: String,
},
Timeout {
duration_ms: u64,
},
CapabilityMismatch {
agent_id: String,
capability: String,
},
StrategyError {
reason: String,
},
SerializationError {
reason: String,
},
Custom(String),
}
Expand description
Core error types for swarm orchestration
Variants§
AgentNotFound
Agent not found in registry
TaskExecutionFailed
Task execution failed
InvalidTopology
Invalid swarm topology
CommunicationError
Communication error between agents
ResourceExhausted
Resource exhaustion
Fields
Timeout
Timeout occurred
CapabilityMismatch
Agent capability mismatch
Fields
StrategyError
Orchestration strategy error
SerializationError
Serialization/deserialization error
Custom(String)
Generic error with custom message
Implementations§
Source§impl SwarmError
impl SwarmError
Trait Implementations§
Source§impl Clone for SwarmError
impl Clone for SwarmError
Source§fn clone(&self) -> SwarmError
fn clone(&self) -> SwarmError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SwarmError
impl Debug for SwarmError
Source§impl Display for SwarmError
impl Display for SwarmError
Source§impl Error for SwarmError
impl Error for SwarmError
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 SwarmError
impl PartialEq for SwarmError
impl Eq for SwarmError
impl StructuralPartialEq for SwarmError
Auto Trait Implementations§
impl Freeze for SwarmError
impl RefUnwindSafe for SwarmError
impl Send for SwarmError
impl Sync for SwarmError
impl Unpin for SwarmError
impl UnwindSafe for SwarmError
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