AcqStatus

Struct AcqStatus 

Source
pub struct AcqStatus {
    pub busy: bool,
    pub done: bool,
    pub points: u32,
    pub group_points: [u32; 2],
    pub lost: u32,
    pub late: u32,
    pub dropped: u32,
    pub rejected: bool,
}
Expand description

采集状态和本次运行的计数器。

Fields§

§busy: bool

正在运行(含仍在途中的记录)。

§done: bool

上一次运行已完成。

§points: u32

两组合计已输出的点数。

§group_points: [u32; 2]

组 0 / 组 1 各自的点数。

§lost: u32

因引擎来不及处理而丢失的事件数(CONV 速率超过了滤波核抽头数允许的上限)。

§late: u32

所需历史已被覆盖的事件数(输出无效)。

§dropped: u32

送往网络之前被丢弃的记录数(主机长时间不收,环形缓冲满)。

§rejected: bool

运行期间有 START 或配置写入被设备拒绝过(PL 0.2.1 起;更早的固件恒为 false)。

Implementations§

Source§

impl AcqStatus

Source

pub fn read<R: RegIo + ?Sized>(io: &mut R) -> Result<AcqStatus>

从设备读出。

Trait Implementations§

Source§

impl Clone for AcqStatus

Source§

fn clone(&self) -> AcqStatus

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AcqStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AcqStatus

Source§

fn default() -> AcqStatus

Returns the “default value” for a type. Read more
Source§

impl PartialEq for AcqStatus

Source§

fn eq(&self, other: &AcqStatus) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for AcqStatus

Source§

impl Eq for AcqStatus

Source§

impl StructuralPartialEq for AcqStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.