Enum jcm::MajorMinorStatus

source ·
#[repr(u16)]
pub enum MajorMinorStatus {
Show 24 variants PowerUp = 0, PowerUpAcceptor = 1, PowerUpStacker = 2, PowerUpAcceptorAccepting = 17, PowerUpStackerAccepting = 18, Normal = 256, NormalIdle = 257, NormalActive = 258, NormalEscrow = 259, NormalVendValid = 260, NormalRejected = 261, NormalReturned = 262, NormalCollected = 264, NormalInsert = 266, NormalConditionalVend = 267, NormalPause = 268, NormalResume = 269, Abnormal = 512, AbnormalOperationError = 513, AbnormalFailure(FailureCode), Warning = 768, WarningNoteStay = 769, WarningFunctionAbeyance = 770, Reserved = 65_535,
}
Expand description

Represents the major-minor status of the JCM device status.

Variants§

§

PowerUp = 0

Power up status: device is in normal power up status.

§

PowerUpAcceptor = 1

Power up status: device has returnable note on power up.

§

PowerUpStacker = 2

Power up status: device has non-returnable note on power up.

§

PowerUpAcceptorAccepting = 17

Power up status: device received note before power down, and has returnable note on power up.

§

PowerUpStackerAccepting = 18

Power up status: device received note before power down, and has non-returnable note on power up.

§

Normal = 256

Normal status: device is disabled

§

NormalIdle = 257

Normal status: acceptor function is in stand-by mode.

§

NormalActive = 258

Normal status: device is in operation.

§

NormalEscrow = 259

Normal status: inserted note passed validation check.

§

NormalVendValid = 260

Normal status: stacking the note is allowed.

§

NormalRejected = 261

Normal status:

  • common: note left in transport is removed during Power Up
  • acceptor: returning note before Escrow Status is notified
§

NormalReturned = 262

Normal status: returning an inserted note after the Escrow Status is notified.

§

NormalCollected = 264

Normal status:

  • common: note left in transport is collected during Power Up
  • acceptor: collecting a scanned note completed
§

NormalInsert = 266

Normal status: note has been inserted.

§

NormalConditionalVend = 267

Normal status: Conditional Stacking is processing.

§

NormalPause = 268

Normal status: device has stopped.

§

NormalResume = 269

Normal status: device has resumed.

§

Abnormal = 512

Abnormal: controversial error has been resolved.

§

AbnormalOperationError = 513

Abnormal: unable to operate, Operation Message is not processed.

§

AbnormalFailure(FailureCode)

Abnormal: fatal error occurred.

§

Warning = 768

Warning status.

§

WarningNoteStay = 769

Warning status: note has stayed in the Insertion position for an extended period.

§

WarningFunctionAbeyance = 770

Warning status: mode enable by Function Mode is not functional.

§

Reserved = 65_535

Reserved function.

Implementations§

source§

impl MajorMinorStatus

source

pub const fn new() -> Self

Creates a new MajorMinorStatus.

source

pub const fn from_u8(val: u8) -> Self

Infallible conversion from a u8 into a MajorMinorStatus.

source

pub const fn from_u16(val: u16) -> Self

Infallible conversion from a u16 into a MajorMinorStatus.

source

pub const fn len() -> usize

Gets the length of the MajorMinorStatus.

source

pub const fn is_empty(&self) -> bool

Gets whether the MajorMinorStatus contains a reserved variant.

Trait Implementations§

source§

impl Clone for MajorMinorStatus

source§

fn clone(&self) -> MajorMinorStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MajorMinorStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for MajorMinorStatus

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for MajorMinorStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&MajorMinorStatus> for &'static str

source§

fn from(val: &MajorMinorStatus) -> Self

Converts to this type from the input type.
source§

impl From<MajorMinorStatus> for &'static str

source§

fn from(val: MajorMinorStatus) -> Self

Converts to this type from the input type.
source§

impl From<MajorMinorStatus> for u16

source§

fn from(val: MajorMinorStatus) -> Self

Converts to this type from the input type.
source§

impl PartialEq for MajorMinorStatus

source§

fn eq(&self, other: &MajorMinorStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl TryFrom<u16> for MajorMinorStatus

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(val: u16) -> Result<Self>

Performs the conversion.
source§

impl TryFrom<u8> for MajorMinorStatus

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(val: u8) -> Result<Self>

Performs the conversion.
source§

impl Copy for MajorMinorStatus

source§

impl Eq for MajorMinorStatus

source§

impl StructuralPartialEq for MajorMinorStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.