pub enum CodeCaveError {
NoCaveFound,
AlreadyAllocated(usize),
NotFound(usize),
InvalidSize(usize),
ImageNotFound(ImageError),
ScanError(ScanError),
Custom(String),
}Expand description
Errors that can occur during code cave operations
Variants§
NoCaveFound
No suitable cave was found for the requested size
AlreadyAllocated(usize)
The specified cave is already allocated
NotFound(usize)
The specified cave was not found in the registry
InvalidSize(usize)
The requested size is invalid (e.g., 0)
ImageNotFound(ImageError)
Image lookup failed
ScanError(ScanError)
Memory scan failed
Custom(String)
Custom error message
Trait Implementations§
Source§impl Debug for CodeCaveError
impl Debug for CodeCaveError
Source§impl Display for CodeCaveError
impl Display for CodeCaveError
Source§impl Error for CodeCaveError
impl Error for CodeCaveError
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<CodeCaveError> for LoaderError
impl From<CodeCaveError> for LoaderError
Source§fn from(source: CodeCaveError) -> Self
fn from(source: CodeCaveError) -> Self
Converts to this type from the input type.
Source§impl From<CodeCaveError> for PatchError
impl From<CodeCaveError> for PatchError
Source§fn from(source: CodeCaveError) -> Self
fn from(source: CodeCaveError) -> Self
Converts to this type from the input type.
Source§impl From<ImageError> for CodeCaveError
impl From<ImageError> for CodeCaveError
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeCaveError
impl RefUnwindSafe for CodeCaveError
impl Send for CodeCaveError
impl Sync for CodeCaveError
impl Unpin for CodeCaveError
impl UnsafeUnpin for CodeCaveError
impl UnwindSafe for CodeCaveError
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