pub enum CouldNotRestorePermissions {
InvalidAddressRange {
pid: Pid,
start: usize,
end: usize,
},
PermissionsMismatch {
expected: PermissionMatcher,
got: Permissions,
},
CouldNotReadMemoryMapping(MappingError),
MprotectFailed {
pid: Pid,
source: MprotectError,
},
CouldNotRestart(CouldNotResume),
}Expand description
Error occuring when trying to change the permissions of a MemoryMapping in a remote process.
This error type is raised either by AsyncReader::restore_permissions or AsyncReader::new
that changes the permissions as well.
Variants§
InvalidAddressRange
PermissionsMismatch
CouldNotReadMemoryMapping(MappingError)
MprotectFailed
CouldNotRestart(CouldNotResume)
Trait Implementations§
Source§impl Debug for CouldNotRestorePermissions
impl Debug for CouldNotRestorePermissions
Source§impl Display for CouldNotRestorePermissions
impl Display for CouldNotRestorePermissions
Source§impl Error for CouldNotRestorePermissions
impl Error for CouldNotRestorePermissions
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<CouldNotResume> for CouldNotRestorePermissions
impl From<CouldNotResume> for CouldNotRestorePermissions
Source§fn from(source: CouldNotResume) -> Self
fn from(source: CouldNotResume) -> Self
Converts to this type from the input type.
Source§impl From<MappingError> for CouldNotRestorePermissions
impl From<MappingError> for CouldNotRestorePermissions
Source§fn from(source: MappingError) -> Self
fn from(source: MappingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CouldNotRestorePermissions
impl !RefUnwindSafe for CouldNotRestorePermissions
impl Send for CouldNotRestorePermissions
impl Sync for CouldNotRestorePermissions
impl Unpin for CouldNotRestorePermissions
impl !UnwindSafe for CouldNotRestorePermissions
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