#[repr(u8)]pub enum CollectMode {
PowerUp = 0,
Acceptor = 1,
Recycler = 2,
Reserved = 255,
}Expand description
Represents the device mode for collecting notes.
Variants§
PowerUp = 0
Collect notes left in device at PowerUp.
Acceptor = 1
Collect notes from the acceptor unit.
Recycler = 2
Collect notes from the recycler unit.
Reserved = 255
Reserved (invalid).
Implementations§
Source§impl CollectMode
impl CollectMode
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new CollectMode.
Sourcepub const fn from_request_code(val: RequestCode) -> Self
pub const fn from_request_code(val: RequestCode) -> Self
Infallible conversion from a RequestCode into a CollectMode.
Sourcepub const fn to_request_code(&self) -> RequestCode
pub const fn to_request_code(&self) -> RequestCode
Converts the CollectMode into a RequestCode.
Trait Implementations§
Source§impl Clone for CollectMode
impl Clone for CollectMode
Source§fn clone(&self) -> CollectMode
fn clone(&self) -> CollectMode
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 CollectMode
impl Debug for CollectMode
Source§impl Default for CollectMode
impl Default for CollectMode
Source§impl PartialEq for CollectMode
impl PartialEq for CollectMode
Source§impl TryFrom<&MessageCode> for CollectMode
impl TryFrom<&MessageCode> for CollectMode
Source§impl TryFrom<&RequestCode> for CollectMode
impl TryFrom<&RequestCode> for CollectMode
Source§impl TryFrom<MessageCode> for CollectMode
impl TryFrom<MessageCode> for CollectMode
Source§impl TryFrom<RequestCode> for CollectMode
impl TryFrom<RequestCode> for CollectMode
impl Copy for CollectMode
impl Eq for CollectMode
impl StructuralPartialEq for CollectMode
Auto Trait Implementations§
impl Freeze for CollectMode
impl RefUnwindSafe for CollectMode
impl Send for CollectMode
impl Sync for CollectMode
impl Unpin for CollectMode
impl UnwindSafe for CollectMode
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