pub struct MemoryInfo<'a> { /* private fields */ }
Expand description
Wrapper structure for a qemu_plugin_meminfo_t
§Safety
This structure is safe to use during the invocation of the callback which receives it as an argument. The structure is always opaque, and therefore may not be accessed directly.
Implementations§
Source§impl<'a> MemoryInfo<'a>
impl<'a> MemoryInfo<'a>
Sourcepub fn size_shift(&self) -> usize
pub fn size_shift(&self) -> usize
Returns the size of the access in base-2, e.g. 0 for byte, 1 for 16-bit, 2 for 32-bit, etc.
Sourcepub fn sign_extended(&self) -> bool
pub fn sign_extended(&self) -> bool
Returns whether the access was sign extended
Sourcepub fn big_endian(&self) -> bool
pub fn big_endian(&self) -> bool
Returns whether the access was big-endian
Trait Implementations§
Source§impl<'a> From<u32> for MemoryInfo<'a>
impl<'a> From<u32> for MemoryInfo<'a>
Source§fn from(info: qemu_plugin_meminfo_t) -> Self
fn from(info: qemu_plugin_meminfo_t) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for MemoryInfo<'a>
impl<'a> RefUnwindSafe for MemoryInfo<'a>
impl<'a> Send for MemoryInfo<'a>
impl<'a> Sync for MemoryInfo<'a>
impl<'a> Unpin for MemoryInfo<'a>
impl<'a> UnwindSafe for MemoryInfo<'a>
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