pub enum AgentError {
SpawnFailed {
agent_type: String,
reason: String,
},
AgentNotFound {
agent_id: String,
},
CommunicationTimeout {
agent_id: String,
duration: Duration,
},
AgentCrashed {
agent_id: String,
reason: String,
},
RecoveryFailed {
agent_id: String,
reason: String,
},
PoolExhausted {
active: usize,
maximum: usize,
},
InvalidStateTransition {
agent_id: String,
from: String,
to: String,
},
TaskExecutionFailed {
agent_id: String,
task: String,
details: Option<String>,
},
InterAgentCommunicationFailed {
from_agent: String,
to_agent: String,
reason: String,
},
AgentPoolError {
reason: String,
},
HealthCheckFailed {
reason: String,
},
}Expand description
Agent lifecycle and communication errors
Variants§
SpawnFailed
Agent spawning failed
AgentNotFound
Agent not found
CommunicationTimeout
Agent communication timeout
AgentCrashed
Agent crashed or terminated unexpectedly
RecoveryFailed
Agent recovery failed
Fields
PoolExhausted
Agent pool exhausted
InvalidStateTransition
Invalid agent state transition
TaskExecutionFailed
Agent task execution failed
Fields
InterAgentCommunicationFailed
Inter-agent communication error
Fields
AgentPoolError
Agent pool error
HealthCheckFailed
Health check failed
Implementations§
Trait Implementations§
Source§impl Debug for AgentError
impl Debug for AgentError
Source§impl Display for AgentError
impl Display for AgentError
Source§impl Error for AgentError
impl Error for AgentError
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 From<AgentError> for Error
impl From<AgentError> for Error
Source§fn from(source: AgentError) -> Self
fn from(source: AgentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AgentError
impl RefUnwindSafe for AgentError
impl Send for AgentError
impl Sync for AgentError
impl Unpin for AgentError
impl UnwindSafe for AgentError
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