#[non_exhaustive]pub enum ErrorKind {
Protocol(ProtocolErrorKind),
Rpc {
code: i32,
},
Session(SessionErrorKind),
Io,
Json,
BinaryNotFound {
name: String,
hint: Option<String>,
},
InvalidConfig,
}Expand description
The kind of Error.
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.
Protocol(ProtocolErrorKind)
JSON-RPC transport or protocol violation.
Rpc
The CLI returned a JSON-RPC error response.
Session(SessionErrorKind)
Session-scoped error (not found, agent error, timeout, etc.).
Io
I/O error on the stdio transport or during process spawn.
Json
Failed to serialize or deserialize a JSON-RPC message.
BinaryNotFound
A required binary was not found on the system.
Fields
InvalidConfig
Invalid combination of options or configuration.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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