pub struct PvSample {
pub pv_name: String,
pub dbr_type: ArchDbType,
pub sample: ArchiverSample,
pub element_count: Option<i32>,
pub counters: Option<Arc<PvCounters>>,
}Expand description
A sample ready to be written to storage.
Fields§
§pv_name: String§dbr_type: ArchDbType§sample: ArchiverSample§element_count: Option<i32>§counters: Option<Arc<PvCounters>>Counter handle used by the write loop to record timestamp / type-change drops. None on samples produced before counter support was wired up — write_loop tolerates the absence.
Auto Trait Implementations§
impl Freeze for PvSample
impl RefUnwindSafe for PvSample
impl Send for PvSample
impl Sync for PvSample
impl Unpin for PvSample
impl UnsafeUnpin for PvSample
impl UnwindSafe for PvSample
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