pub enum AcpError {
Spawn(String),
Protocol(String),
AgentError(String),
ConnectionLost(String),
Timeout(u64),
InvalidConfig(String),
}Expand description
Errors that can occur during ACP operations.
Variants§
Spawn(String)
Failed to spawn the ACP agent process.
Protocol(String)
ACP protocol error (initialization, session, or prompt failure).
AgentError(String)
The ACP agent returned an error response.
ConnectionLost(String)
Connection to the ACP agent was lost.
Timeout(u64)
Timeout waiting for ACP agent response.
InvalidConfig(String)
Invalid configuration for the ACP agent.
Trait Implementations§
Source§impl Error for AcpError
impl Error for AcpError
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()
Auto Trait Implementations§
impl Freeze for AcpError
impl RefUnwindSafe for AcpError
impl Send for AcpError
impl Sync for AcpError
impl Unpin for AcpError
impl UnsafeUnpin for AcpError
impl UnwindSafe for AcpError
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