pub struct ExecutionCostComponents {
pub compile_or_prepare_ns: u64,
pub upload_ns: u64,
pub allocation_ns: u64,
pub queue_ns: u64,
pub execution_ns: u64,
pub synchronization_ns: u64,
pub download_ns: u64,
pub downstream_ns: u64,
}Expand description
Complete additive cost decomposition for one legal execution candidate.
Components are deliberately executor-neutral. Providers retain ownership of kernel scheduling, while placement retains ownership of comparing complete candidates and residency transitions.
Fields§
§compile_or_prepare_ns: u64§upload_ns: u64§allocation_ns: u64§queue_ns: u64§execution_ns: u64§synchronization_ns: u64§download_ns: u64§downstream_ns: u64Implementations§
Source§impl ExecutionCostComponents
impl ExecutionCostComponents
pub fn checked_total_ns(self) -> Option<u64>
Trait Implementations§
Source§impl Clone for ExecutionCostComponents
impl Clone for ExecutionCostComponents
Source§fn clone(&self) -> ExecutionCostComponents
fn clone(&self) -> ExecutionCostComponents
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 moreimpl Copy for ExecutionCostComponents
Source§impl Debug for ExecutionCostComponents
impl Debug for ExecutionCostComponents
Source§impl Default for ExecutionCostComponents
impl Default for ExecutionCostComponents
Source§fn default() -> ExecutionCostComponents
fn default() -> ExecutionCostComponents
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionCostComponents
impl<'de> Deserialize<'de> for ExecutionCostComponents
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 ExecutionCostComponents
Source§impl PartialEq for ExecutionCostComponents
impl PartialEq for ExecutionCostComponents
Source§impl Serialize for ExecutionCostComponents
impl Serialize for ExecutionCostComponents
impl StructuralPartialEq for ExecutionCostComponents
Auto Trait Implementations§
impl Freeze for ExecutionCostComponents
impl RefUnwindSafe for ExecutionCostComponents
impl Send for ExecutionCostComponents
impl Sync for ExecutionCostComponents
impl Unpin for ExecutionCostComponents
impl UnsafeUnpin for ExecutionCostComponents
impl UnwindSafe for ExecutionCostComponents
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