Enum jcm::FunctionErrors
source · #[repr(u8)]pub enum FunctionErrors {
None = 0,
ErrorOccurred = 1,
}Expand description
Represents whether the device unit is functional.
Variants§
Implementations§
source§impl FunctionErrors
impl FunctionErrors
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new FunctionErrors.
sourcepub const fn from_u8(val: u8) -> Self
pub const fn from_u8(val: u8) -> Self
Infallible function to convert a u8 into a FunctionErrors.
sourcepub const fn to_u8(&self) -> u8
pub const fn to_u8(&self) -> u8
Infallible function to convert a FunctionErrors into a u8.
Trait Implementations§
source§impl Clone for FunctionErrors
impl Clone for FunctionErrors
source§fn clone(&self) -> FunctionErrors
fn clone(&self) -> FunctionErrors
Returns a copy 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 FunctionErrors
impl Debug for FunctionErrors
source§impl Default for FunctionErrors
impl Default for FunctionErrors
source§impl Display for FunctionErrors
impl Display for FunctionErrors
source§impl From<&FunctionErrors> for &'static str
impl From<&FunctionErrors> for &'static str
source§fn from(val: &FunctionErrors) -> Self
fn from(val: &FunctionErrors) -> Self
Converts to this type from the input type.
source§impl From<FunctionErrors> for &'static str
impl From<FunctionErrors> for &'static str
source§fn from(val: FunctionErrors) -> Self
fn from(val: FunctionErrors) -> Self
Converts to this type from the input type.
source§impl PartialEq for FunctionErrors
impl PartialEq for FunctionErrors
source§fn eq(&self, other: &FunctionErrors) -> bool
fn eq(&self, other: &FunctionErrors) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for FunctionErrors
impl Eq for FunctionErrors
impl StructuralPartialEq for FunctionErrors
Auto Trait Implementations§
impl Freeze for FunctionErrors
impl RefUnwindSafe for FunctionErrors
impl Send for FunctionErrors
impl Sync for FunctionErrors
impl Unpin for FunctionErrors
impl UnwindSafe for FunctionErrors
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