pub enum ClientError {
DriverOpenFailed(Error),
DriverNotFound,
IoctlFailed {
code: u32,
error: Error,
},
InvalidResponse {
expected: usize,
received: usize,
},
ProcessError {
pid: u32,
reason: String,
},
MemoryError {
address: u64,
reason: String,
},
BufferTooSmall {
required: usize,
provided: usize,
},
NotSupported,
}Expand description
client error types
Variants§
DriverOpenFailed(Error)
failed to open driver
DriverNotFound
driver not found
IoctlFailed
IOCTL operation failed
InvalidResponse
invalid response from driver
ProcessError
process operation failed
MemoryError
memory operation failed
BufferTooSmall
buffer too small
NotSupported
operation not supported
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
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 ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
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