pub enum Owner {
Device,
Uninstrumented,
Kernel,
}Expand description
Who a range of memory belongs to while it is out of the monitor’s authority.
Judgement J7 of spec/safe-memory/04-safety-model.md, which is the one that has no analogue
in any existing tool. A range handed to a device is a range the program must not touch until
it comes back, and saying which of the three it went to is what lets the report name what the
program broke rather than only that it broke something.
Variants§
Device
A device, which is what the DMA ownership contract hands a buffer to.
Uninstrumented
Code compiled without the instrumentation, per document 10.
Kernel
The kernel, across a system call that writes into the range.
Implementations§
Trait Implementations§
impl Copy for Owner
impl Eq for Owner
Source§impl Ord for Owner
impl Ord for Owner
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Owner
impl PartialOrd for Owner
impl StructuralPartialEq for Owner
Auto Trait Implementations§
impl Freeze for Owner
impl RefUnwindSafe for Owner
impl Send for Owner
impl Sync for Owner
impl Unpin for Owner
impl UnsafeUnpin for Owner
impl UnwindSafe for Owner
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