#[non_exhaustive]pub enum AgentCommandsError {
Unsupported,
NotSupervised,
Refused(Box<ErrorBody>),
ConnectionClosed,
Timeout,
Protocol(String),
}Expand description
A refused or incomplete agent-command declaration never closes the module’s connection.
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.
Implementations§
Source§impl AgentCommandsError
impl AgentCommandsError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Retryable refusals need a fresh correlation; a closed declaration queue additionally needs a current supervised connection. This does not retry automatically.
Trait Implementations§
Source§impl Debug for AgentCommandsError
impl Debug for AgentCommandsError
Source§impl Display for AgentCommandsError
impl Display for AgentCommandsError
Source§impl Error for AgentCommandsError
impl Error for AgentCommandsError
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 Forget for AgentCommandsError
impl Freeze for AgentCommandsError
impl Move for AgentCommandsError
impl RefUnwindSafe for AgentCommandsError
impl Send for AgentCommandsError
impl Sync for AgentCommandsError
impl Unpin for AgentCommandsError
impl UnsafeUnpin for AgentCommandsError
impl UnwindSafe for AgentCommandsError
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