pub enum WatchMode {
Write,
Read,
Both,
}Expand description
Memory-watchpoint trigger discipline.
Variants§
Write
Fire only on writes intersecting [addr, addr+size).
Read
Fire only on reads intersecting [addr, addr+size).
Both
Fire on both reads and writes.
Implementations§
Source§impl WatchMode
impl WatchMode
Sourcepub const fn watches_writes(self) -> bool
pub const fn watches_writes(self) -> bool
Does this mode emit a mem_write event?
Sourcepub const fn watches_reads(self) -> bool
pub const fn watches_reads(self) -> bool
Does this mode emit a mem_read event?
Trait Implementations§
impl Copy for WatchMode
impl Eq for WatchMode
impl StructuralPartialEq for WatchMode
Auto Trait Implementations§
impl Freeze for WatchMode
impl RefUnwindSafe for WatchMode
impl Send for WatchMode
impl Sync for WatchMode
impl Unpin for WatchMode
impl UnsafeUnpin for WatchMode
impl UnwindSafe for WatchMode
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