Enum jcm::BillAcceptorState
source · #[repr(u8)]pub enum BillAcceptorState {
Initializing = 1,
Inhibited = 2,
Idle = 3,
Escrowed = 4,
VendValid = 5,
Reserved = 255,
}Expand description
Represents the state of the bill acceptor.
Variants§
Implementations§
source§impl BillAcceptorState
impl BillAcceptorState
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new BillAcceptorState.
sourcepub const fn from_u8(val: u8) -> Self
pub const fn from_u8(val: u8) -> Self
Infallible conversion from a u8 into a BillAcceptorState.
Trait Implementations§
source§impl Clone for BillAcceptorState
impl Clone for BillAcceptorState
source§fn clone(&self) -> BillAcceptorState
fn clone(&self) -> BillAcceptorState
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 BillAcceptorState
impl Debug for BillAcceptorState
source§impl Default for BillAcceptorState
impl Default for BillAcceptorState
source§impl Display for BillAcceptorState
impl Display for BillAcceptorState
source§impl From<&BillAcceptorState> for &'static str
impl From<&BillAcceptorState> for &'static str
source§fn from(val: &BillAcceptorState) -> Self
fn from(val: &BillAcceptorState) -> Self
Converts to this type from the input type.
source§impl From<BillAcceptorState> for &'static str
impl From<BillAcceptorState> for &'static str
source§fn from(val: BillAcceptorState) -> Self
fn from(val: BillAcceptorState) -> Self
Converts to this type from the input type.
source§impl PartialEq for BillAcceptorState
impl PartialEq for BillAcceptorState
source§fn eq(&self, other: &BillAcceptorState) -> bool
fn eq(&self, other: &BillAcceptorState) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<u8> for BillAcceptorState
impl TryFrom<u8> for BillAcceptorState
impl Copy for BillAcceptorState
impl Eq for BillAcceptorState
impl StructuralPartialEq for BillAcceptorState
Auto Trait Implementations§
impl Freeze for BillAcceptorState
impl RefUnwindSafe for BillAcceptorState
impl Send for BillAcceptorState
impl Sync for BillAcceptorState
impl Unpin for BillAcceptorState
impl UnwindSafe for BillAcceptorState
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