pub struct ResidencyReport { /* private fields */ }Expand description
Immutable residency-control and checkpoint-storage telemetry snapshot.
Implementations§
Source§impl ResidencyReport
impl ResidencyReport
Sourcepub fn new(
initialized: bool,
offload: OffloadReport,
units: Vec<UnitResidencyReport>,
active_window: Vec<OffloadUnitId>,
weight_store: WeightStoreDiagnostics,
) -> Self
pub fn new( initialized: bool, offload: OffloadReport, units: Vec<UnitResidencyReport>, active_window: Vec<OffloadUnitId>, weight_store: WeightStoreDiagnostics, ) -> Self
Creates a report from one coherent controller and storage snapshot.
Sourcepub const fn initialized(&self) -> bool
pub const fn initialized(&self) -> bool
Returns whether explicit initialization completed successfully.
Sourcepub const fn offload(&self) -> &OffloadReport
pub const fn offload(&self) -> &OffloadReport
Returns the immutable offload telemetry snapshot.
Sourcepub fn units(&self) -> &[UnitResidencyReport]
pub fn units(&self) -> &[UnitResidencyReport]
Returns unit states in identifier order.
Sourcepub fn active_window(&self) -> &[OffloadUnitId]
pub fn active_window(&self) -> &[OffloadUnitId]
Returns the protected execution window in identifier order.
Sourcepub const fn weight_store(&self) -> &WeightStoreDiagnostics
pub const fn weight_store(&self) -> &WeightStoreDiagnostics
Returns storage diagnostics, distinct from logical residency telemetry.
Sourcepub const fn materialization(&self) -> Option<&WeightMaterializationReport>
pub const fn materialization(&self) -> Option<&WeightMaterializationReport>
Returns bounded load-time materialization telemetry for these units.
Sourcepub fn with_materialization(
self,
materialization: Option<WeightMaterializationReport>,
) -> Self
pub fn with_materialization( self, materialization: Option<WeightMaterializationReport>, ) -> Self
Attaches bounded load-time materialization telemetry.
Trait Implementations§
Source§impl Clone for ResidencyReport
impl Clone for ResidencyReport
Source§fn clone(&self) -> ResidencyReport
fn clone(&self) -> ResidencyReport
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 ResidencyReport
impl Debug for ResidencyReport
impl Eq for ResidencyReport
Source§impl PartialEq for ResidencyReport
impl PartialEq for ResidencyReport
impl StructuralPartialEq for ResidencyReport
Auto Trait Implementations§
impl Freeze for ResidencyReport
impl RefUnwindSafe for ResidencyReport
impl Send for ResidencyReport
impl Sync for ResidencyReport
impl Unpin for ResidencyReport
impl UnsafeUnpin for ResidencyReport
impl UnwindSafe for ResidencyReport
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