pub enum ProtectionError {
QueryFailed(usize),
InvalidAddress(usize),
ProtectionFailed(i32),
}Expand description
Errors that can occur during protection queries or modifications
Variants§
QueryFailed(usize)
Failed to query memory region information from the kernel
InvalidAddress(usize)
The address is invalid or not mapped
ProtectionFailed(i32)
Failed to change memory protection
Trait Implementations§
Source§impl Debug for ProtectionError
impl Debug for ProtectionError
Source§impl Display for ProtectionError
impl Display for ProtectionError
Source§impl Error for ProtectionError
impl Error for ProtectionError
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 ProtectionError
impl RefUnwindSafe for ProtectionError
impl Send for ProtectionError
impl Sync for ProtectionError
impl Unpin for ProtectionError
impl UnsafeUnpin for ProtectionError
impl UnwindSafe for ProtectionError
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