Struct STR

Source
pub struct STR {
Show 59 fields pub cont_flg: B1, pub test_num: U4, pub head_num: U1, pub site_num: U1, pub psr_ref: U2, pub test_flg: B1, pub log_typ: Cn, pub test_txt: Cn, pub alarm_id: Cn, pub prog_txt: Cn, pub rslt_txt: Cn, pub z_val: U1, pub fmu_flg: B1, pub mask_map: Dn, pub fal_map: Dn, pub cyc_cnt_t: U8, pub totf_cnt: U4, pub totl_cnt: U4, pub cyc_base: U8, pub bit_base: U4, pub cond_cnt: U2, pub lim_cnt: U2, pub cyc_size: U1, pub pmr_size: U1, pub chn_size: U1, pub pat_size: U1, pub bit_size: U1, pub u1_size: U1, pub u2_size: U1, pub u3_size: U1, pub utx_size: U1, pub cap_bgn: U2, pub lim_indx: KxU2, pub lim_spec: KxU4, pub cond_lst: KxCn, pub cyc_cnt: U2, pub cyc_ofst: KxUf, pub pmr_cnt: U2, pub pmr_indx: KxUf, pub chn_cnt: U2, pub chn_num: KxUf, pub exp_cnt: U2, pub exp_data: KxU1, pub cap_cnt: U2, pub cap_data: KxU1, pub new_cnt: U2, pub new_data: KxU1, pub pat_cnt: U2, pub pat_num: KxUf, pub bpos_cnt: U2, pub bit_pos: KxUf, pub usr1_cnt: U2, pub usr1: KxUf, pub usr2_cnt: U2, pub usr2: KxUf, pub usr3_cnt: U2, pub usr3: KxUf, pub txt_cnt: U2, pub user_txt: KxCf,
}

Fields§

§cont_flg: B1§test_num: U4§head_num: U1§site_num: U1§psr_ref: U2§test_flg: B1§log_typ: Cn§test_txt: Cn§alarm_id: Cn§prog_txt: Cn§rslt_txt: Cn§z_val: U1§fmu_flg: B1§mask_map: Dn§fal_map: Dn§cyc_cnt_t: U8§totf_cnt: U4§totl_cnt: U4§cyc_base: U8§bit_base: U4§cond_cnt: U2§lim_cnt: U2§cyc_size: U1§pmr_size: U1§chn_size: U1§pat_size: U1§bit_size: U1§u1_size: U1§u2_size: U1§u3_size: U1§utx_size: U1§cap_bgn: U2§lim_indx: KxU2§lim_spec: KxU4§cond_lst: KxCn§cyc_cnt: U2§cyc_ofst: KxUf§pmr_cnt: U2§pmr_indx: KxUf§chn_cnt: U2§chn_num: KxUf§exp_cnt: U2§exp_data: KxU1§cap_cnt: U2§cap_data: KxU1§new_cnt: U2§new_data: KxU1§pat_cnt: U2§pat_num: KxUf§bpos_cnt: U2§bit_pos: KxUf§usr1_cnt: U2§usr1: KxUf§usr2_cnt: U2§usr2: KxUf§usr3_cnt: U2§usr3: KxUf§txt_cnt: U2§user_txt: KxCf

Implementations§

Source§

impl STR

Source

pub fn new() -> Self

Source

pub fn read_from_bytes(&mut self, raw_data: &[u8], order: &ByteOrder)

Trait Implementations§

Source§

impl Clone for STR

Source§

fn clone(&self) -> STR

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 STR

Source§

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

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

impl Default for STR

Source§

fn default() -> Self

Return STR { cont_flg: Default::default(), test_num: Default::default(), head_num: Default::default(), site_num: Default::default(), psr_ref: Default::default(), test_flg: Default::default(), log_typ: Default::default(), test_txt: Default::default(), alarm_id: Default::default(), prog_txt: Default::default(), rslt_txt: Default::default(), z_val: Default::default(), fmu_flg: Default::default(), mask_map: Default::default(), fal_map: Default::default(), cyc_cnt_t: Default::default(), totf_cnt: Default::default(), totl_cnt: Default::default(), cyc_base: Default::default(), bit_base: Default::default(), cond_cnt: Default::default(), lim_cnt: Default::default(), cyc_size: Default::default(), pmr_size: Default::default(), chn_size: Default::default(), pat_size: Default::default(), bit_size: Default::default(), u1_size: Default::default(), u2_size: Default::default(), u3_size: Default::default(), utx_size: Default::default(), cap_bgn: Default::default(), lim_indx: Default::default(), lim_spec: Default::default(), cond_lst: Default::default(), cyc_cnt: Default::default(), cyc_ofst: Default::default(), pmr_cnt: Default::default(), pmr_indx: Default::default(), chn_cnt: Default::default(), chn_num: Default::default(), exp_cnt: Default::default(), exp_data: Default::default(), cap_cnt: Default::default(), cap_data: Default::default(), new_cnt: Default::default(), new_data: Default::default(), pat_cnt: Default::default(), pat_num: Default::default(), bpos_cnt: Default::default(), bit_pos: Default::default(), usr1_cnt: Default::default(), usr1: Default::default(), usr2_cnt: Default::default(), usr2: Default::default(), usr3_cnt: Default::default(), usr3: Default::default(), txt_cnt: Default::default(), user_txt: Default::default() }

Source§

impl PartialEq for STR

Source§

fn eq(&self, other: &STR) -> 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 Eq for STR

Source§

impl StructuralPartialEq for STR

Auto Trait Implementations§

§

impl Freeze for STR

§

impl RefUnwindSafe for STR

§

impl Send for STR

§

impl Sync for STR

§

impl Unpin for STR

§

impl UnwindSafe for STR

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.