pub struct GpadlMap { /* private fields */ }
Expand description
A set of GPADLs that the guest has made available to the host.
Implementations§
Source§impl GpadlMap
impl GpadlMap
Sourcepub fn add(&self, id: GpadlId, buf: MultiPagedRangeBuf<Vec<u64>>)
pub fn add(&self, id: GpadlId, buf: MultiPagedRangeBuf<Vec<u64>>)
Adds the specified GPADL to the map.
Sourcepub fn remove(&self, id: GpadlId, f: TeardownFn) -> Option<TeardownFn>
pub fn remove(&self, id: GpadlId, f: TeardownFn) -> Option<TeardownFn>
Removes the specified GPADL from the mapping, calling f
when there are
no more GpadlView
instances.
Sourcepub fn view(self: Arc<Self>) -> GpadlMapView
pub fn view(self: Arc<Self>) -> GpadlMapView
Constructs a GPADL map view.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for GpadlMap
impl !RefUnwindSafe for GpadlMap
impl Send for GpadlMap
impl Sync for GpadlMap
impl Unpin for GpadlMap
impl !UnwindSafe for GpadlMap
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