#[repr(u32)]pub enum HardwareStatus {
Ok = 0,
Missing = 1,
Notification = 2,
Warning = 3,
Error = 4,
}
Expand description
Represents the overall status of the CDR hardware.
Variants§
Implementations§
Source§impl HardwareStatus
impl HardwareStatus
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new HardwareStatus.
Sourcepub const fn create(val: u32) -> Self
pub const fn create(val: u32) -> Self
Creates a new HardwareStatus from the provided parameter.
Trait Implementations§
Source§impl Clone for HardwareStatus
impl Clone for HardwareStatus
Source§fn clone(&self) -> HardwareStatus
fn clone(&self) -> HardwareStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HardwareStatus
impl Debug for HardwareStatus
Source§impl Default for HardwareStatus
impl Default for HardwareStatus
Source§fn default() -> HardwareStatus
fn default() -> HardwareStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HardwareStatus
impl<'de> Deserialize<'de> for HardwareStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HardwareStatus
impl Display for HardwareStatus
Source§impl From<&[HardwareStatus]> for HardwareStatus
impl From<&[HardwareStatus]> for HardwareStatus
Source§fn from(val: &[HardwareStatus]) -> Self
fn from(val: &[HardwareStatus]) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<&[HardwareStatus; N]> for HardwareStatus
impl<const N: usize> From<&[HardwareStatus; N]> for HardwareStatus
Source§fn from(val: &[HardwareStatus; N]) -> Self
fn from(val: &[HardwareStatus; N]) -> Self
Converts to this type from the input type.
Source§impl From<&HardwareStatus> for &'static str
impl From<&HardwareStatus> for &'static str
Source§fn from(val: &HardwareStatus) -> Self
fn from(val: &HardwareStatus) -> Self
Converts to this type from the input type.
Source§impl From<&HardwareStatus> for XfsMember
impl From<&HardwareStatus> for XfsMember
Source§fn from(val: &HardwareStatus) -> Self
fn from(val: &HardwareStatus) -> Self
Converts to this type from the input type.
Source§impl From<&HardwareStatus> for XfsValue
impl From<&HardwareStatus> for XfsValue
Source§fn from(val: &HardwareStatus) -> Self
fn from(val: &HardwareStatus) -> Self
Converts to this type from the input type.
Source§impl From<&HardwareStatus> for i32
impl From<&HardwareStatus> for i32
Source§fn from(val: &HardwareStatus) -> Self
fn from(val: &HardwareStatus) -> Self
Converts to this type from the input type.
Source§impl From<&HardwareStatus> for u32
impl From<&HardwareStatus> for u32
Source§fn from(val: &HardwareStatus) -> Self
fn from(val: &HardwareStatus) -> Self
Converts to this type from the input type.
Source§impl From<&i32> for HardwareStatus
impl From<&i32> for HardwareStatus
Source§impl From<&u32> for HardwareStatus
impl From<&u32> for HardwareStatus
Source§impl<const N: usize> From<[HardwareStatus; N]> for HardwareStatus
impl<const N: usize> From<[HardwareStatus; N]> for HardwareStatus
Source§fn from(val: [HardwareStatus; N]) -> Self
fn from(val: [HardwareStatus; N]) -> Self
Converts to this type from the input type.
Source§impl From<CdrPositionStatusList> for HardwareStatus
impl From<CdrPositionStatusList> for HardwareStatus
Source§fn from(val: CdrPositionStatusList) -> Self
fn from(val: CdrPositionStatusList) -> Self
Converts to this type from the input type.
Source§impl From<CdrStatus> for HardwareStatus
impl From<CdrStatus> for HardwareStatus
Source§impl From<ContentStatus> for HardwareStatus
impl From<ContentStatus> for HardwareStatus
Source§fn from(val: ContentStatus) -> Self
fn from(val: ContentStatus) -> Self
Converts to this type from the input type.
Source§impl From<DeviceStatus> for HardwareStatus
impl From<DeviceStatus> for HardwareStatus
Source§fn from(val: DeviceStatus) -> Self
fn from(val: DeviceStatus) -> Self
Converts to this type from the input type.
Source§impl From<DispenserStatus> for HardwareStatus
impl From<DispenserStatus> for HardwareStatus
Source§fn from(val: DispenserStatus) -> Self
fn from(val: DispenserStatus) -> Self
Converts to this type from the input type.
Source§impl From<HardwareStatus> for &'static str
impl From<HardwareStatus> for &'static str
Source§fn from(val: HardwareStatus) -> Self
fn from(val: HardwareStatus) -> Self
Converts to this type from the input type.
Source§impl From<HardwareStatus> for XfsMember
impl From<HardwareStatus> for XfsMember
Source§fn from(val: HardwareStatus) -> Self
fn from(val: HardwareStatus) -> Self
Converts to this type from the input type.
Source§impl From<HardwareStatus> for XfsValue
impl From<HardwareStatus> for XfsValue
Source§fn from(val: HardwareStatus) -> Self
fn from(val: HardwareStatus) -> Self
Converts to this type from the input type.
Source§impl From<HardwareStatus> for i32
impl From<HardwareStatus> for i32
Source§fn from(val: HardwareStatus) -> Self
fn from(val: HardwareStatus) -> Self
Converts to this type from the input type.
Source§impl From<HardwareStatus> for u32
impl From<HardwareStatus> for u32
Source§fn from(val: HardwareStatus) -> Self
fn from(val: HardwareStatus) -> Self
Converts to this type from the input type.
Source§impl From<IntermediateStackerStatus> for HardwareStatus
impl From<IntermediateStackerStatus> for HardwareStatus
Source§fn from(val: IntermediateStackerStatus) -> Self
fn from(val: IntermediateStackerStatus) -> Self
Converts to this type from the input type.
Source§impl From<PositionStatus> for HardwareStatus
impl From<PositionStatus> for HardwareStatus
Source§fn from(val: PositionStatus) -> Self
fn from(val: PositionStatus) -> Self
Converts to this type from the input type.
Source§impl From<SafeDoorStatus> for HardwareStatus
impl From<SafeDoorStatus> for HardwareStatus
Source§fn from(val: SafeDoorStatus) -> Self
fn from(val: SafeDoorStatus) -> Self
Converts to this type from the input type.
Source§impl From<ShutterStatus> for HardwareStatus
impl From<ShutterStatus> for HardwareStatus
Source§fn from(val: ShutterStatus) -> Self
fn from(val: ShutterStatus) -> Self
Converts to this type from the input type.
Source§impl From<TransportStatus> for HardwareStatus
impl From<TransportStatus> for HardwareStatus
Source§fn from(val: TransportStatus) -> Self
fn from(val: TransportStatus) -> Self
Converts to this type from the input type.
Source§impl From<i32> for HardwareStatus
impl From<i32> for HardwareStatus
Source§impl From<u32> for HardwareStatus
impl From<u32> for HardwareStatus
Source§impl PartialEq for HardwareStatus
impl PartialEq for HardwareStatus
Source§impl Serialize for HardwareStatus
impl Serialize for HardwareStatus
Source§impl TryFrom<&XfsMember> for HardwareStatus
impl TryFrom<&XfsMember> for HardwareStatus
Source§impl TryFrom<&XfsValue> for HardwareStatus
impl TryFrom<&XfsValue> for HardwareStatus
Source§impl TryFrom<XfsMember> for HardwareStatus
impl TryFrom<XfsMember> for HardwareStatus
Source§impl TryFrom<XfsValue> for HardwareStatus
impl TryFrom<XfsValue> for HardwareStatus
impl Copy for HardwareStatus
impl StructuralPartialEq for HardwareStatus
Auto Trait Implementations§
impl Freeze for HardwareStatus
impl RefUnwindSafe for HardwareStatus
impl Send for HardwareStatus
impl Sync for HardwareStatus
impl Unpin for HardwareStatus
impl UnwindSafe for HardwareStatus
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