#[non_exhaustive]pub enum ControlError {
Unavailable(Error),
Server {
code: ErrorCode,
message: String,
},
TimedOut,
Protocol(String),
}Expand description
Why a control request failed.
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.
No daemon accepted the connection: it is not running, or the socket is stale. Nothing was sent.
Server
The daemon refused the request. A daemon that predates a command
refuses it with ErrorCode::InvalidJson, as a frame it cannot parse.
Fields
TimedOut
No answer within the helper’s time limit. The daemon may still carry out a mutation; query status before retrying.
Protocol(String)
The exchange broke off, or the daemon answered something this client does not understand. A mutation’s outcome is unknown.
Trait Implementations§
Source§impl Debug for ControlError
impl Debug for ControlError
Source§impl Display for ControlError
impl Display for ControlError
Source§impl Error for ControlError
impl Error for ControlError
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 !RefUnwindSafe for ControlError
impl !UnwindSafe for ControlError
impl Freeze for ControlError
impl Send for ControlError
impl Sync for ControlError
impl Unpin for ControlError
impl UnsafeUnpin for ControlError
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