Struct cros_async::mem::MemRegion
source · pub struct MemRegion {
pub offset: u64,
pub len: usize,
}
Expand description
Used to index subslices of backing memory. Like an iovec, but relative to the start of the backing memory instead of an absolute pointer. The backing memory referenced by the region can be an array, an mmapped file, or guest memory. The offset is a u64 to allow having file or guest offsets >4GB when run on a 32bit host.
Fields§
§offset: u64
§len: usize
Trait Implementations§
source§impl PartialEq for MemRegion
impl PartialEq for MemRegion
impl Copy for MemRegion
impl Eq for MemRegion
impl StructuralPartialEq for MemRegion
Auto Trait Implementations§
impl RefUnwindSafe for MemRegion
impl Send for MemRegion
impl Sync for MemRegion
impl Unpin for MemRegion
impl UnwindSafe for MemRegion
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