Skip to main content

NoteRetrievedEvent

Struct NoteRetrievedEvent 

Source
pub struct NoteRetrievedEvent { /* private fields */ }
Expand description

Note Retrieved - Event (Subtype 0x0B)

If the functionality has been enabled, the device will send out a message each time the note is removed after a return/reject.

The Note Retrieved Event is formatted as follows:

NameSTXLENCTRLSubtypeData 0Data 1Data 2Data 3Data 4Data 5EventETXCHK
Byte0123456789101112
Value0x020x0D0x7n0x0Bnnnnnnnnnnnn0x7F0x03zz

The 0x7F for the `Event byte signifies that the note has been removed by the user.

Implementations§

Source§

impl NoteRetrievedEvent

Source

pub fn new() -> Self

Source

pub fn retrieved_event(&self) -> u8

Trait Implementations§

Source§

impl Clone for NoteRetrievedEvent

Source§

fn clone(&self) -> NoteRetrievedEvent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for NoteRetrievedEvent

Source§

impl Debug for NoteRetrievedEvent

Source§

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

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

impl Default for NoteRetrievedEvent

Source§

fn default() -> NoteRetrievedEvent

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

impl Display for NoteRetrievedEvent

Source§

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

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

impl ExtendedCommandOps for NoteRetrievedEvent

Source§

fn extended_command(&self) -> ExtendedCommand

Get the extended command sub-type
Source§

fn set_extended_command(&mut self, ext_cmd: ExtendedCommand)

Set the extended command sub-type
Source§

impl From<&NoteRetrievedEvent> for OmnibusReply

Source§

fn from(reply: &NoteRetrievedEvent) -> Self

Converts to this type from the input type.
Source§

impl From<NoteRetrievedEvent> for OmnibusReply

Source§

fn from(reply: NoteRetrievedEvent) -> Self

Converts to this type from the input type.
Source§

impl MessageOps for NoteRetrievedEvent

Source§

fn buf(&self) -> &[u8]

Get a reference to the message buffer.
Source§

fn buf_mut(&mut self) -> &mut [u8]

Get a mutable reference to the message buffer.
Source§

fn init(&mut self)

Initialize common message fields
Source§

fn len(&self) -> usize

Get the length of the entire message.
Source§

fn is_empty(&self) -> bool

Gets whether the message buffer is empty (all zeros)
Source§

fn data_len(&self) -> usize

Get the length of data bytes.
Source§

fn etx_index(&self) -> usize

Get the ETX index.
Source§

fn chk_index(&self) -> usize

Get the checksum index.
Source§

fn acknak(&self) -> AckNak

Get the ACKNAK control field.
Source§

fn set_acknak(&mut self, acknak: AckNak)

Set the ACKNAK control field.
Source§

fn switch_acknak(&mut self)

Switches the current ACKNAK control field value.
Source§

fn device_type(&self) -> DeviceType

Get the device type control field.
Source§

fn set_device_type(&mut self, device_type: DeviceType)

Set the device type control field
Source§

fn message_type(&self) -> MessageType

Get the message type control field
Source§

fn set_message_type(&mut self, message_type: MessageType)

Set the message type control field
Source§

fn checksum(&self) -> u8

Get the current checksum value Read more
Source§

fn checksum_bytes(&self) -> &[u8]

Source§

fn calculate_checksum(&mut self) -> u8

Calculate the message checksum
Source§

fn validate_checksum(&self) -> Result<()>

Validate the message checksum Read more
Source§

fn as_bytes(&mut self) -> &[u8]

Get the message as a byte buffer Read more
Source§

fn as_bytes_mut(&mut self) -> &mut [u8]

Get a mutable reference to the byte buffer
Source§

fn as_bytes_unchecked(&self) -> &[u8]

Get the message as a byte buffer Read more
Source§

fn from_buf(&mut self, buf: &[u8]) -> Result<()>

Deserializes a message type from a byte buffer. Read more
Source§

impl OmnibusReplyOps for NoteRetrievedEvent

Source§

fn device_state(&self) -> DeviceState

Get the device state data field
Source§

fn set_device_state(&mut self, device_state: DeviceState)

Set the device state data field
Source§

fn device_status(&self) -> DeviceStatus

Get the device status data field
Source§

fn set_device_status(&mut self, device_status: DeviceStatus)

Source§

fn exception_status(&self) -> ExceptionStatus

Get the exception status data field
Source§

fn set_exception_status(&mut self, exception_status: ExceptionStatus)

Source§

fn misc_device_state(&self) -> MiscDeviceState

Get the miscellaneous device status data field
Source§

fn set_misc_device_state(&mut self, misc_device_state: MiscDeviceState)

Source§

fn model_number(&self) -> ModelNumber

Get the model number data field
Source§

fn set_model_number(&mut self, model_number: ModelNumber)

Set the model number data field
Source§

fn code_revision(&self) -> CodeRevision

Get the code revision data field
Source§

fn set_code_revision(&mut self, code_revision: CodeRevision)

Set the code revision data field
Source§

fn idling(&self) -> Idling

Get the idling device state data field
Source§

fn set_idling(&mut self, idling: Idling)

Get the idling device state data field
Source§

fn accepting(&self) -> Accepting

Get the accepting device state data field
Source§

fn set_accepting(&mut self, accepting: Accepting)

Get the accepting device state data field
Source§

fn escrowed_state(&self) -> EscrowedState

Get the escrowed state device state data field
Source§

fn set_escrowed_state(&mut self, escrowed_state: EscrowedState)

Get the escrowed state device state data field
Source§

fn stacking(&self) -> Stacking

Get the stacking device state data field
Source§

fn set_stacking(&mut self, stacking: Stacking)

Get the stacking device state data field
Source§

fn stacked_event(&self) -> StackedEvent

Get the stacked event device state data field
Source§

fn set_stacked_event(&mut self, stacked_event: StackedEvent)

Get the stacked event device state data field
Source§

fn returning(&self) -> Returning

Get the returning device state data field
Source§

fn set_returning(&mut self, returning: Returning)

Get the returning device state data field
Source§

fn returned_event(&self) -> ReturnedEvent

Get the returned event device state data field
Source§

fn set_returned_event(&mut self, returned_event: ReturnedEvent)

Get the returned event device state data field
Source§

fn cheated(&self) -> Cheated

Get the cheated device status data field
Source§

fn set_cheated(&mut self, cheated: Cheated)

Set the cheated device status data field
Source§

fn rejected(&self) -> Rejected

Get the rejected device status data field
Source§

fn set_rejected(&mut self, rejected: Rejected)

Set the rejected device status data field
Source§

fn jammed(&self) -> Jammed

Get the jammed device status data field
Source§

fn set_jammed(&mut self, jammed: Jammed)

Set the jammed device status data field
Source§

fn stacker_full(&self) -> StackerFull

Get the stacker full device status data field
Source§

fn set_stacker_full(&mut self, stacker_full: StackerFull)

Set the stacker full device status data field
Source§

fn cassette_attached(&self) -> CassetteAttached

Get the cassette attached device status data field
Source§

fn set_cassette_attached(&mut self, cassette_attached: CassetteAttached)

Set the cassette attached device status data field
Source§

fn cash_box_status(&self) -> CashBoxStatus

Get the status of the cash box
Source§

fn paused(&self) -> Paused

Get the paused device status data field
Source§

fn set_paused(&mut self, paused: Paused)

Set the paused device status data field
Source§

fn calibration(&self) -> Calibration

Get the calibration in progress device status data field
Source§

fn set_calibration(&mut self, calibration: Calibration)

Set the calibration in progress device status data field
Source§

fn power_up(&self) -> PowerUpStatus

Get the power up status data field
Source§

fn set_power_up(&mut self, power_up: PowerUpStatus)

Set the power up status data field
Source§

fn invalid_command(&self) -> InvalidCommand

Get the invalid command data field
Source§

fn set_invalid_command(&mut self, invalid_command: InvalidCommand)

Set the invalid command data field
Source§

fn failure(&self) -> Failure

Get the failure data field
Source§

fn set_failure(&mut self, failure: Failure)

Set the failure data field
Source§

fn note_value(&self) -> StandardDenomination

Get the note value data field
Source§

fn set_note_value(&mut self, note_value: StandardDenomination)

Set the note value data field
Source§

fn transport_open(&self) -> TransportOpen

Get the transport open data field
Source§

fn set_transport_open(&mut self, transport_open: TransportOpen)

Set the transport open data field
Source§

fn stalled(&self) -> Stalled

Get the stalled data field
Source§

fn set_stalled(&mut self, stalled: Stalled)

Set the stalled data field
Source§

fn flash_download(&self) -> FlashDownload

Get the flash download data field
Source§

fn set_flash_download(&mut self, flash_download: FlashDownload)

Set the flash download data field
Source§

fn pre_stack(&self) -> PreStack

Get the pre-stack data field
Source§

fn set_pre_stack(&mut self, pre_stack: PreStack)

Set the pre-stack data field
Source§

fn raw_barcode(&self) -> RawBarcode

Get the raw barcode data field
Source§

fn set_raw_barcode(&mut self, raw_barcode: RawBarcode)

Set the raw barcode data field
Source§

fn device_capabilities(&self) -> DeviceCapabilities

Get the device capabilities data field
Source§

fn set_device_capabilities(&mut self, device_capabilities: DeviceCapabilities)

Set the device capabilities data field
Source§

fn disabled(&self) -> Disabled

Get the disabled data field
Source§

fn set_disabled(&mut self, disabled: Disabled)

Set the disabled data field
Source§

impl PartialEq for NoteRetrievedEvent

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for NoteRetrievedEvent

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

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§

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>,

Source§

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>,

Source§

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.