pub enum MemoryOperation {
Undetermined,
Read,
Write,
Execute,
}
Expand description
The memory operation occurring when a crash occurred.
Variants§
Implementations§
Source§impl MemoryOperation
impl MemoryOperation
pub fn from_crash_reason(reason: &CrashReason) -> Self
Sourcepub fn is_possibly_allowed_for(
&self,
memory_info: &UnifiedMemoryInfo<'_>,
) -> bool
pub fn is_possibly_allowed_for( &self, memory_info: &UnifiedMemoryInfo<'_>, ) -> bool
Return whether this memory operation is possibily allowed in the given memory region.
If operation is Undetermined
, this method returns true.
Sourcepub fn is_allowed_for(&self, memory_info: &UnifiedMemoryInfo<'_>) -> bool
pub fn is_allowed_for(&self, memory_info: &UnifiedMemoryInfo<'_>) -> bool
Return whether this memory operation is definitely allowed in the given memory region.
If operation is Undetermined
, this method returns false.
Trait Implementations§
Source§impl Clone for MemoryOperation
impl Clone for MemoryOperation
Source§fn clone(&self) -> MemoryOperation
fn clone(&self) -> MemoryOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MemoryOperation
impl Debug for MemoryOperation
Source§impl Default for MemoryOperation
impl Default for MemoryOperation
Source§fn default() -> MemoryOperation
fn default() -> MemoryOperation
Returns the “default value” for a type. Read more
Source§impl Display for MemoryOperation
impl Display for MemoryOperation
Source§impl PartialEq for MemoryOperation
impl PartialEq for MemoryOperation
impl Copy for MemoryOperation
impl Eq for MemoryOperation
impl StructuralPartialEq for MemoryOperation
Auto Trait Implementations§
impl Freeze for MemoryOperation
impl RefUnwindSafe for MemoryOperation
impl Send for MemoryOperation
impl Sync for MemoryOperation
impl Unpin for MemoryOperation
impl UnwindSafe for MemoryOperation
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