Enum ModuleType

Source
pub enum ModuleType {
Show 63 variants UR20_4DI_P, UR20_4DI_P_3W, UR20_8DI_P_2W, UR20_8DI_P_3W, UR20_8DI_P_3W_HD, UR20_16DI_P, UR20_16DI_P_PLC_INT, UR20_2DI_P_TS, UR20_4DI_P_TS, UR20_4DI_N, UR20_8DI_N_3W, UR20_16DI_N, UR20_16DI_N_PLC_INT, UR20_4DI_2W_230V_AC, UR20_4DO_P, UR20_4DO_P_2A, UR20_4DO_PN_2A, UR20_8DO_P, UR20_8DO_P_2W_HD, UR20_16DO_P, UR20_16DO_P_PLC_INT, UR20_4DO_N, UR20_4DO_N_2A, UR20_8DO_N, UR20_16DO_N, UR20_16DO_N_PLC_INT, UR20_4RO_SSR_255, UR20_4RO_CO_255, UR20_2PWM_PN_0_5A, UR20_2PWM_PN_2A, UR20_4AI_UI_16, UR20_4AI_UI_16_DIAG, UR20_4AI_UI_DIF_16_DIAG, UR20_4AI_UI_16_HD, UR20_4AI_UI_16_DIAG_HD, UR20_4AI_UI_12, UR20_8AI_I_16_HD, UR20_8AI_I_16_DIAG_HD, UR20_8AI_I_PLC_INT, UR20_4AI_R_HS_16_DIAG, UR20_2AI_SG_24_DIAG, UR20_3EM_230V_AC, UR20_4AO_UI_16, UR20_4AO_UI_16_M, UR20_4AO_UI_16_DIAG, UR20_4AO_UI_16_M_DIAG, UR20_4AO_UI_16_HD, UR20_4AO_UI_16_DIAG_HD, UR20_1CNT_100_1DO, UR20_2CNT_100, UR20_1CNT_500, UR20_2FCNT_100, UR20_1SSI, UR20_1COM_232_485_422, UR20_1COM_SAI_PRO, UR20_4COM_IO_LINK, UR20_4AI_RTD_DIAG, UR20_4AI_TC_DIAG, UR20_PF_I, UR20_PF_O, UR20_PF_O_1DI_SIL, UR20_PF_O_2DI_SIL, UR20_PF_O_2DI_DELAY_SIL,
}
Expand description

Describes the concrete module type.

Variants§

§

UR20_4DI_P

§

UR20_4DI_P_3W

§

UR20_8DI_P_2W

§

UR20_8DI_P_3W

§

UR20_8DI_P_3W_HD

§

UR20_16DI_P

§

UR20_16DI_P_PLC_INT

§

UR20_2DI_P_TS

§

UR20_4DI_P_TS

§

UR20_4DI_N

§

UR20_8DI_N_3W

§

UR20_16DI_N

§

UR20_16DI_N_PLC_INT

§

UR20_4DI_2W_230V_AC

§

UR20_4DO_P

§

UR20_4DO_P_2A

§

UR20_4DO_PN_2A

§

UR20_8DO_P

§

UR20_8DO_P_2W_HD

§

UR20_16DO_P

§

UR20_16DO_P_PLC_INT

§

UR20_4DO_N

§

UR20_4DO_N_2A

§

UR20_8DO_N

§

UR20_16DO_N

§

UR20_16DO_N_PLC_INT

§

UR20_4RO_SSR_255

§

UR20_4RO_CO_255

§

UR20_2PWM_PN_0_5A

§

UR20_2PWM_PN_2A

§

UR20_4AI_UI_16

§

UR20_4AI_UI_16_DIAG

§

UR20_4AI_UI_DIF_16_DIAG

§

UR20_4AI_UI_16_HD

§

UR20_4AI_UI_16_DIAG_HD

§

UR20_4AI_UI_12

§

UR20_8AI_I_16_HD

§

UR20_8AI_I_16_DIAG_HD

§

UR20_8AI_I_PLC_INT

§

UR20_4AI_R_HS_16_DIAG

§

UR20_2AI_SG_24_DIAG

§

UR20_3EM_230V_AC

§

UR20_4AO_UI_16

§

UR20_4AO_UI_16_M

§

UR20_4AO_UI_16_DIAG

§

UR20_4AO_UI_16_M_DIAG

§

UR20_4AO_UI_16_HD

§

UR20_4AO_UI_16_DIAG_HD

§

UR20_1CNT_100_1DO

§

UR20_2CNT_100

§

UR20_1CNT_500

§

UR20_2FCNT_100

§

UR20_1SSI

§

UR20_1COM_232_485_422

§

UR20_1COM_SAI_PRO

§

UR20_4AI_RTD_DIAG

§

UR20_4AI_TC_DIAG

§

UR20_PF_I

§

UR20_PF_O

§

UR20_PF_O_1DI_SIL

§

UR20_PF_O_2DI_SIL

§

UR20_PF_O_2DI_DELAY_SIL

Implementations§

Source§

impl ModuleType

Source

pub const fn try_from_u32(id: u32) -> Result<Self, Error>

Source

pub const fn channel_count(&self) -> usize

Returns the number of channels for a specific module type.

Trait Implementations§

Source§

impl Clone for ModuleType

Source§

fn clone(&self) -> ModuleType

Returns a copy 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 ModuleType

Source§

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

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

impl From<ModuleType> for ModuleCategory

Source§

fn from(val: ModuleType) -> Self

Converts to this type from the input type.
Source§

impl FromStr for ModuleType

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for ModuleType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl ModbusParameterRegisterCount for ModuleType

Source§

fn param_register_count(&self) -> u16

Total number of Modbus registers of module parameters.
Source§

impl PartialEq for ModuleType

Source§

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

Source§

impl StructuralPartialEq for ModuleType

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.