pub enum MemReaderError {
FewerBytesRead(usize, Vec<u8>),
UnsuccessfulRead(Option<isize>),
Handle(Option<isize>),
Io(Error),
Other(isize),
}
Expand description
An error when using MemReader
.
Variants§
FewerBytesRead(usize, Vec<u8>)
Fewer bytes were read from memory than were requested.
Contains the number of bytes read and the shortened vector.
UnsuccessfulRead(Option<isize>)
The attempt to read the memory was unsuccessful.
If there was any error status from the system call, it is included.
Handle(Option<isize>)
Unable to get a handle on the process to read.
If there was any error status from the system call, it is included.
Io(Error)
An IO error occurred and is included.
Other(isize)
Another error, represented by a code.
Trait Implementations§
Source§impl Debug for MemReaderError
impl Debug for MemReaderError
Source§impl Display for MemReaderError
impl Display for MemReaderError
Source§impl Error for MemReaderError
impl Error for MemReaderError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl Freeze for MemReaderError
impl !RefUnwindSafe for MemReaderError
impl Send for MemReaderError
impl Sync for MemReaderError
impl Unpin for MemReaderError
impl !UnwindSafe for MemReaderError
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