pub struct ResidentLayerGroup { /* private fields */ }Expand description
A named sequential execution stack with an independent device window.
Implementations§
Source§impl ResidentLayerGroup
impl ResidentLayerGroup
Sourcepub fn new(
id: impl Into<String>,
units: impl IntoIterator<Item = OffloadUnitId>,
depth: usize,
) -> Result<Self, ResidencyWindowError>
pub fn new( id: impl Into<String>, units: impl IntoIterator<Item = OffloadUnitId>, depth: usize, ) -> Result<Self, ResidencyWindowError>
Creates a named group over ordered residency units.
Sourcepub fn units(&self) -> &[OffloadUnitId]
pub fn units(&self) -> &[OffloadUnitId]
Returns ordered units in this group.
Sourcepub fn prepare<M: ResidencyWindowManager>(
&self,
manager: &M,
current: usize,
) -> Result<Vec<(OffloadUnitId, PrefetchOutcome)>, M::Error>
pub fn prepare<M: ResidencyWindowManager>( &self, manager: &M, current: usize, ) -> Result<Vec<(OffloadUnitId, PrefetchOutcome)>, M::Error>
Prepares this group’s window without replacing another group’s window.
Sourcepub fn trim_to<M: ResidencyWindowManager>(
&self,
manager: &M,
desired: &[OffloadUnitId],
) -> Result<(), M::Error>
pub fn trim_to<M: ResidencyWindowManager>( &self, manager: &M, desired: &[OffloadUnitId], ) -> Result<(), M::Error>
Trims this group to the desired window.
Sourcepub fn clear<M: ResidencyWindowManager>(
&self,
manager: &M,
) -> Result<(), M::Error>
pub fn clear<M: ResidencyWindowManager>( &self, manager: &M, ) -> Result<(), M::Error>
Clears only this group’s protection and device copies.
Sourcepub fn report<M: ResidencyWindowManager>(
&self,
manager: &M,
) -> Result<ResidentLayerGroupReport, M::Error>
pub fn report<M: ResidencyWindowManager>( &self, manager: &M, ) -> Result<ResidentLayerGroupReport, M::Error>
Returns current logical residency attributed to this group’s units.
Trait Implementations§
Source§impl Clone for ResidentLayerGroup
impl Clone for ResidentLayerGroup
Source§fn clone(&self) -> ResidentLayerGroup
fn clone(&self) -> ResidentLayerGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResidentLayerGroup
impl RefUnwindSafe for ResidentLayerGroup
impl Send for ResidentLayerGroup
impl Sync for ResidentLayerGroup
impl Unpin for ResidentLayerGroup
impl UnsafeUnpin for ResidentLayerGroup
impl UnwindSafe for ResidentLayerGroup
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