pub struct DemLogicalCollectionStats {
pub task_id: String,
pub strong_id: String,
pub decoder: Option<String>,
pub metadata_json: String,
pub shots: usize,
pub errors: usize,
pub discards: usize,
pub seconds: f64,
pub counter_schema: DemLogicalCounterSchema,
pub custom_counts: HashMap<String, usize>,
}Fields§
§task_id: String§strong_id: String§decoder: Option<String>§metadata_json: String§shots: usize§errors: usize§discards: usize§seconds: f64§counter_schema: DemLogicalCounterSchema§custom_counts: HashMap<String, usize>Implementations§
Source§impl DemLogicalCollectionStats
impl DemLogicalCollectionStats
pub fn empty_for_task( task: &DemLogicalCollectionTask, counter_schema: DemLogicalCounterSchema, ) -> Self
pub fn with_identity( self, task_id: String, strong_id: String, decoder: Option<String>, metadata_json: String, ) -> Self
pub fn add_assign_checked(&mut self, other: &Self) -> NpResult<()>
pub fn validate_counter_schema(&self) -> NpResult<()>
Trait Implementations§
Source§impl Clone for DemLogicalCollectionStats
impl Clone for DemLogicalCollectionStats
Source§impl Debug for DemLogicalCollectionStats
impl Debug for DemLogicalCollectionStats
impl StructuralPartialEq for DemLogicalCollectionStats
Auto Trait Implementations§
impl Freeze for DemLogicalCollectionStats
impl RefUnwindSafe for DemLogicalCollectionStats
impl Send for DemLogicalCollectionStats
impl Sync for DemLogicalCollectionStats
impl Unpin for DemLogicalCollectionStats
impl UnsafeUnpin for DemLogicalCollectionStats
impl UnwindSafe for DemLogicalCollectionStats
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