pub struct UnitResidencyReport { /* private fields */ }Expand description
Point-in-time logical residency for one planned unit.
Implementations§
Source§impl UnitResidencyReport
impl UnitResidencyReport
Sourcepub fn id(&self) -> &OffloadUnitId
pub fn id(&self) -> &OffloadUnitId
Stable unit identifier.
Sourcepub const fn planned_tier(&self) -> MemoryTier
pub const fn planned_tier(&self) -> MemoryTier
Initial tier selected by the plan.
Sourcepub const fn policy(&self) -> ResidencyPolicy
pub const fn policy(&self) -> ResidencyPolicy
Operational lifetime policy.
Sourcepub const fn expected_bytes(&self) -> u64
pub const fn expected_bytes(&self) -> u64
Planned logical bytes.
Sourcepub const fn host_allocated_bytes(&self) -> u64
pub const fn host_allocated_bytes(&self) -> u64
Charged host allocation capacity.
Sourcepub const fn device_allocated_bytes(&self) -> u64
pub const fn device_allocated_bytes(&self) -> u64
Charged execution-memory bytes.
Sourcepub const fn host_resident(&self) -> bool
pub const fn host_resident(&self) -> bool
Whether a host copy is logically resident.
Sourcepub const fn device_resident(&self) -> bool
pub const fn device_resident(&self) -> bool
Whether an execution-memory copy is logically resident.
Sourcepub const fn device_pins(&self) -> u64
pub const fn device_pins(&self) -> u64
Active execution-copy leases.
Sourcepub const fn active_window(&self) -> bool
pub const fn active_window(&self) -> bool
Whether any named execution window protects the unit.
Trait Implementations§
Source§impl Clone for UnitResidencyReport
impl Clone for UnitResidencyReport
Source§fn clone(&self) -> UnitResidencyReport
fn clone(&self) -> UnitResidencyReport
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 moreSource§impl Debug for UnitResidencyReport
impl Debug for UnitResidencyReport
Source§impl<'de> Deserialize<'de> for UnitResidencyReport
impl<'de> Deserialize<'de> for UnitResidencyReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for UnitResidencyReport
Source§impl PartialEq for UnitResidencyReport
impl PartialEq for UnitResidencyReport
Source§impl Serialize for UnitResidencyReport
impl Serialize for UnitResidencyReport
impl StructuralPartialEq for UnitResidencyReport
Auto Trait Implementations§
impl Freeze for UnitResidencyReport
impl RefUnwindSafe for UnitResidencyReport
impl Send for UnitResidencyReport
impl Sync for UnitResidencyReport
impl Unpin for UnitResidencyReport
impl UnsafeUnpin for UnitResidencyReport
impl UnwindSafe for UnitResidencyReport
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