pub struct PageRefaultCounter { /* private fields */ }Implementations§
Source§impl PageRefaultCounter
impl PageRefaultCounter
Sourcepub fn from_vmo_readonly(vmo: Vmo) -> Result<Self, Status>
pub fn from_vmo_readonly(vmo: Vmo) -> Result<Self, Status>
Creates a new read-only PageRefaultCounter from the provided VMO. The VMO must have the READ, MAP, and GET_PROPERTY rights.
pub fn increment(&self, count: u64, order: Ordering)
pub fn read(&self, order: Ordering) -> u64
Sourcepub fn readonly_vmo(&self) -> Result<Vmo, Status>
pub fn readonly_vmo(&self) -> Result<Vmo, Status>
Returns a read-only handle for the backing VMO.
Trait Implementations§
impl Send for PageRefaultCounter
impl Sync for PageRefaultCounter
Auto Trait Implementations§
impl Freeze for PageRefaultCounter
impl RefUnwindSafe for PageRefaultCounter
impl Unpin for PageRefaultCounter
impl UnsafeUnpin for PageRefaultCounter
impl UnwindSafe for PageRefaultCounter
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