pub struct MeasuredComputeProfile {
pub identity: ComputeDeviceIdentity,
pub limits: ComputeProfileLimits,
pub samples: ComputeProfileSamples,
pub context: ComputeThermalPowerContext,
pub tile_bytes: u64,
pub allocation_bytes: Vec<u64>,
pub provenance: ComputeProfileProvenance,
pub modeled: ModeledComputeProfile,
}Expand description
Checked measured profile used by automatic routing.
Fields§
§identity: ComputeDeviceIdentityDevice identity.
limits: ComputeProfileLimitsProvider limits.
samples: ComputeProfileSamplesTransfer and operation sample distributions.
context: ComputeThermalPowerContextThermal and power measurement context.
tile_bytes: u64Selected tile byte size.
allocation_bytes: Vec<u64>Allocation probe byte sizes that succeeded.
provenance: ComputeProfileProvenanceProvenance for this record.
modeled: ModeledComputeProfileModeled profile to use when the evidence is accepted.
Implementations§
Source§impl MeasuredComputeProfile
impl MeasuredComputeProfile
Sourcepub fn is_conclusive(&self) -> bool
pub fn is_conclusive(&self) -> bool
Returns true when the profile has usable, bounded measurement evidence.
Sourcepub fn is_compatible(
&self,
identity: &ComputeDeviceIdentity,
now_tick: u64,
) -> bool
pub fn is_compatible( &self, identity: &ComputeDeviceIdentity, now_tick: u64, ) -> bool
Returns true when this profile still applies to identity at now_tick.
Sourcepub fn modeled_profile(&self) -> ModeledComputeProfile
pub fn modeled_profile(&self) -> ModeledComputeProfile
Returns the modeled executor profile selected by this measured evidence.
Trait Implementations§
Source§impl Citizen for MeasuredComputeProfile
impl Citizen for MeasuredComputeProfile
Source§fn citizen_symbol() -> Symbol
fn citizen_symbol() -> Symbol
The citizen’s
namespace/name class symbol.Source§fn citizen_version() -> u32
fn citizen_version() -> u32
The citizen’s encoding version.
Source§fn citizen_arity() -> usize
fn citizen_arity() -> usize
Number of constructor fields (excluding the version argument).
Source§fn citizen_fields() -> &'static [&'static str]
fn citizen_fields() -> &'static [&'static str]
The citizen’s field names, in constructor order.
Source§impl Clone for MeasuredComputeProfile
impl Clone for MeasuredComputeProfile
Source§fn clone(&self) -> MeasuredComputeProfile
fn clone(&self) -> MeasuredComputeProfile
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 ComputePhysicalEvidence for MeasuredComputeProfile
impl ComputePhysicalEvidence for MeasuredComputeProfile
Source§fn evidence_kind(&self) -> ComputeEvidenceKind
fn evidence_kind(&self) -> ComputeEvidenceKind
Reported evidence kind.
Source§fn claimed_identity(&self) -> Option<&ComputeDeviceIdentity>
fn claimed_identity(&self) -> Option<&ComputeDeviceIdentity>
Claimed device identity, when the record carries one.
Source§fn observed_identity(&self) -> Option<&ComputeDeviceIdentity>
fn observed_identity(&self) -> Option<&ComputeDeviceIdentity>
Observed device identity captured by the producer, when available.
Source§impl Debug for MeasuredComputeProfile
impl Debug for MeasuredComputeProfile
impl Eq for MeasuredComputeProfile
Source§impl PartialEq for MeasuredComputeProfile
impl PartialEq for MeasuredComputeProfile
impl StructuralPartialEq for MeasuredComputeProfile
Auto Trait Implementations§
impl Freeze for MeasuredComputeProfile
impl RefUnwindSafe for MeasuredComputeProfile
impl Send for MeasuredComputeProfile
impl Sync for MeasuredComputeProfile
impl Unpin for MeasuredComputeProfile
impl UnsafeUnpin for MeasuredComputeProfile
impl UnwindSafe for MeasuredComputeProfile
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