pub struct GpadlView(/* private fields */);
Expand description
A GPADL that has been provided by the guest. It has not yet been locked.
The guest will not reuse the associated memory while this exists.
Implementations§
Methods from Deref<Target = MultiPagedRangeBuf<Vec<u64>>>§
pub fn subrange( &self, offset: usize, len: usize, ) -> Result<MultiPagedRangeBuf<SmallVec<[u64; 64]>>, Error>
pub fn iter(&self) -> MultiPagedRangeIter<'_>
pub fn range_count(&self) -> usize
pub fn first(&self) -> Option<PagedRange<'_>>
pub fn contiguous_aligned(&self) -> Option<PagedRange<'_>>
pub fn contiguous_aligned(&self) -> Option<PagedRange<'_>>
Validates that this multi range consists of exactly one range that is page aligned. Returns that range.
pub fn range_buffer(&self) -> &[u64]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GpadlView
impl !RefUnwindSafe for GpadlView
impl Send for GpadlView
impl Sync for GpadlView
impl Unpin for GpadlView
impl !UnwindSafe for GpadlView
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