#[repr(u8)]pub enum SprogModuleType {
CANPiSPRG3 = 1,
CANSPROG3P = 2,
CANSPROG = 3,
CANSBOOST = 4,
CANPiSPRGP = 5,
CANSOLNOID = 8,
CANSERVOIO = 50,
CANISB = 100,
CANSOLIO = 101,
}Expand description
Sprog Module types
Variants§
CANPiSPRG3 = 1
Pi-SPROG 3 programmer/command station
CANSPROG3P = 2
SPROG 3 Plus programmer/command station
CANSPROG = 3
CAN SPROG programmer/command station
CANSBOOST = 4
System Booster
CANPiSPRGP = 5
Pi-SPROG 3 Plus programmer/command station
CANSOLNOID = 8
8-channel (4-pairs) Solenoid I/O module
CANSERVOIO = 50
8-channel Servo I/O module
CANISB = 100
CAN ISB Isolated CAN USB Interface
CANSOLIO = 101
8-channel (4-pairs) Solenoid I/O module
Trait Implementations§
Source§impl Clone for SprogModuleType
impl Clone for SprogModuleType
Source§fn clone(&self) -> SprogModuleType
fn clone(&self) -> SprogModuleType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SprogModuleType
Source§impl Debug for SprogModuleType
impl Debug for SprogModuleType
impl Eq for SprogModuleType
Source§impl From<SprogModuleType> for u8
impl From<SprogModuleType> for u8
Source§fn from(enum_value: SprogModuleType) -> Self
fn from(enum_value: SprogModuleType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SprogModuleType
impl PartialEq for SprogModuleType
Source§fn eq(&self, other: &SprogModuleType) -> bool
fn eq(&self, other: &SprogModuleType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SprogModuleType
Source§impl TryFrom<u8> for SprogModuleType
impl TryFrom<u8> for SprogModuleType
Source§type Error = TryFromPrimitiveError<SprogModuleType>
type Error = TryFromPrimitiveError<SprogModuleType>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SprogModuleType
impl TryFromPrimitive for SprogModuleType
const NAME: &'static str = "SprogModuleType"
type Primitive = u8
type Error = TryFromPrimitiveError<SprogModuleType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl UnsafeFromPrimitive for SprogModuleType
impl UnsafeFromPrimitive for SprogModuleType
type Primitive = u8
Source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
Source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0:
Prefer to use unchecked_transmute_from, from_unchecked will be removed in a future release.
Transmutes into an enum from its primitive. Read more
Auto Trait Implementations§
impl Freeze for SprogModuleType
impl RefUnwindSafe for SprogModuleType
impl Send for SprogModuleType
impl Sync for SprogModuleType
impl Unpin for SprogModuleType
impl UnsafeUnpin for SprogModuleType
impl UnwindSafe for SprogModuleType
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