pub enum RwError {
NullPointer,
ImageBaseNotFound(ImageError),
ProtectionFailed(i32),
ThreadError(ThreadError),
}Expand description
Errors that can occur during memory read/write operations
Variants§
NullPointer
The target address is null
ImageBaseNotFound(ImageError)
Failed to find the target image base
ProtectionFailed(i32)
Failed to change memory protection
ThreadError(ThreadError)
Thread manipulation error
Trait Implementations§
Source§impl Error for RwError
impl Error for RwError
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()
Source§impl From<ImageError> for RwError
impl From<ImageError> for RwError
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Source§impl From<RwError> for LoaderError
impl From<RwError> for LoaderError
Source§impl From<ThreadError> for RwError
impl From<ThreadError> for RwError
Source§fn from(source: ThreadError) -> Self
fn from(source: ThreadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RwError
impl RefUnwindSafe for RwError
impl Send for RwError
impl Sync for RwError
impl Unpin for RwError
impl UnsafeUnpin for RwError
impl UnwindSafe for RwError
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