pub struct WriteWatch {
pub begin: u64,
pub end: u64,
pub code: u64,
}Expand description
Stops before every store to guest memory whose address lies in
begin..=end, with vm.interrupt(code, address, size, value).
The range check is emitted as IR before the store, so a store elsewhere costs three native instructions and no exit. The stored value is passed when it fits an interrupt argument (8 bytes or fewer).
Fields§
§begin: u64§end: u64§code: u64Trait Implementations§
Source§impl Clone for WriteWatch
impl Clone for WriteWatch
Source§fn clone(&self) -> WriteWatch
fn clone(&self) -> WriteWatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WriteWatch
impl Debug for WriteWatch
Source§impl Hook for WriteWatch
impl Hook for WriteWatch
Auto Trait Implementations§
impl Freeze for WriteWatch
impl RefUnwindSafe for WriteWatch
impl Send for WriteWatch
impl Sync for WriteWatch
impl Unpin for WriteWatch
impl UnsafeUnpin for WriteWatch
impl UnwindSafe for WriteWatch
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