Struct ebds::note_retrieved::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:
Name | STX | LEN | CTRL | Subtype | Data 0 | Data 1 | Data 2 | Data 3 | Data 4 | Data 5 | Event | ETX | CHK |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Byte | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
Value | 0x02 | 0x0D | 0x7n | 0x0B | nn | nn | nn | nn | nn | nn | 0x7F | 0x03 | zz |
The 0x7F
for the `Event byte signifies that the note has been removed by the user.
Implementations§
source§impl NoteRetrievedEvent
impl NoteRetrievedEvent
pub fn new() -> Self
pub fn retrieved_event(&self) -> u8
Trait Implementations§
source§impl Clone for NoteRetrievedEvent
impl Clone for NoteRetrievedEvent
source§fn clone(&self) -> NoteRetrievedEvent
fn clone(&self) -> NoteRetrievedEvent
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 NoteRetrievedEvent
impl Debug for NoteRetrievedEvent
source§impl Default for NoteRetrievedEvent
impl Default for NoteRetrievedEvent
source§fn default() -> NoteRetrievedEvent
fn default() -> NoteRetrievedEvent
Returns the “default value” for a type. Read more
source§impl Display for NoteRetrievedEvent
impl Display for NoteRetrievedEvent
source§impl ExtendedCommandOps for NoteRetrievedEvent
impl ExtendedCommandOps for NoteRetrievedEvent
source§fn extended_command(&self) -> ExtendedCommand
fn extended_command(&self) -> ExtendedCommand
Get the extended command sub-type
source§fn set_extended_command(&mut self, ext_cmd: ExtendedCommand)
fn set_extended_command(&mut self, ext_cmd: ExtendedCommand)
Set the extended command sub-type
source§impl From<&NoteRetrievedEvent> for OmnibusReply
impl From<&NoteRetrievedEvent> for OmnibusReply
source§fn from(reply: &NoteRetrievedEvent) -> Self
fn from(reply: &NoteRetrievedEvent) -> Self
Converts to this type from the input type.
source§impl From<NoteRetrievedEvent> for OmnibusReply
impl From<NoteRetrievedEvent> for OmnibusReply
source§fn from(reply: NoteRetrievedEvent) -> Self
fn from(reply: NoteRetrievedEvent) -> Self
Converts to this type from the input type.
source§impl MessageOps for NoteRetrievedEvent
impl MessageOps for NoteRetrievedEvent
source§fn set_acknak(&mut self, acknak: AckNak)
fn set_acknak(&mut self, acknak: AckNak)
Set the ACKNAK control field.
source§fn switch_acknak(&mut self)
fn switch_acknak(&mut self)
Switches the current ACKNAK control field value.
source§fn device_type(&self) -> DeviceType
fn device_type(&self) -> DeviceType
Get the device type control field.
source§fn set_device_type(&mut self, device_type: DeviceType)
fn set_device_type(&mut self, device_type: DeviceType)
Set the device type control field
source§fn message_type(&self) -> MessageType
fn message_type(&self) -> MessageType
Get the message type control field
source§fn set_message_type(&mut self, message_type: MessageType)
fn set_message_type(&mut self, message_type: MessageType)
Set the message type control field
fn checksum_bytes(&self) -> &[u8] ⓘ
source§fn calculate_checksum(&mut self) -> u8
fn calculate_checksum(&mut self) -> u8
Calculate the message checksum
source§fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
fn as_bytes_mut(&mut self) -> &mut [u8] ⓘ
Get a mutable reference to the byte buffer
source§impl OmnibusReplyOps for NoteRetrievedEvent
impl OmnibusReplyOps for NoteRetrievedEvent
source§fn device_state(&self) -> DeviceState
fn device_state(&self) -> DeviceState
Get the device state data field
source§fn set_device_state(&mut self, device_state: DeviceState)
fn set_device_state(&mut self, device_state: DeviceState)
Set the device state data field
source§fn device_status(&self) -> DeviceStatus
fn device_status(&self) -> DeviceStatus
Get the device status data field
fn set_device_status(&mut self, device_status: DeviceStatus)
source§fn exception_status(&self) -> ExceptionStatus
fn exception_status(&self) -> ExceptionStatus
Get the exception status data field
fn set_exception_status(&mut self, exception_status: ExceptionStatus)
source§fn misc_device_state(&self) -> MiscDeviceState
fn misc_device_state(&self) -> MiscDeviceState
Get the miscellaneous device status data field
fn set_misc_device_state(&mut self, misc_device_state: MiscDeviceState)
source§fn model_number(&self) -> ModelNumber
fn model_number(&self) -> ModelNumber
Get the model number data field
source§fn set_model_number(&mut self, model_number: ModelNumber)
fn set_model_number(&mut self, model_number: ModelNumber)
Set the model number data field
source§fn code_revision(&self) -> CodeRevision
fn code_revision(&self) -> CodeRevision
Get the code revision data field
source§fn set_code_revision(&mut self, code_revision: CodeRevision)
fn set_code_revision(&mut self, code_revision: CodeRevision)
Set the code revision data field
source§fn set_idling(&mut self, idling: Idling)
fn set_idling(&mut self, idling: Idling)
Get the idling device state data field
source§fn set_accepting(&mut self, accepting: Accepting)
fn set_accepting(&mut self, accepting: Accepting)
Get the accepting device state data field
source§fn escrowed_state(&self) -> EscrowedState
fn escrowed_state(&self) -> EscrowedState
Get the escrowed state device state data field
source§fn set_escrowed_state(&mut self, escrowed_state: EscrowedState)
fn set_escrowed_state(&mut self, escrowed_state: EscrowedState)
Get the escrowed state device state data field
source§fn set_stacking(&mut self, stacking: Stacking)
fn set_stacking(&mut self, stacking: Stacking)
Get the stacking device state data field
source§fn stacked_event(&self) -> StackedEvent
fn stacked_event(&self) -> StackedEvent
Get the stacked event device state data field
source§fn set_stacked_event(&mut self, stacked_event: StackedEvent)
fn set_stacked_event(&mut self, stacked_event: StackedEvent)
Get the stacked event device state data field
source§fn set_returning(&mut self, returning: Returning)
fn set_returning(&mut self, returning: Returning)
Get the returning device state data field
source§fn returned_event(&self) -> ReturnedEvent
fn returned_event(&self) -> ReturnedEvent
Get the returned event device state data field
source§fn set_returned_event(&mut self, returned_event: ReturnedEvent)
fn set_returned_event(&mut self, returned_event: ReturnedEvent)
Get the returned event device state data field
source§fn set_cheated(&mut self, cheated: Cheated)
fn set_cheated(&mut self, cheated: Cheated)
Set the cheated device status data field
source§fn set_rejected(&mut self, rejected: Rejected)
fn set_rejected(&mut self, rejected: Rejected)
Set the rejected device status data field
source§fn set_jammed(&mut self, jammed: Jammed)
fn set_jammed(&mut self, jammed: Jammed)
Set the jammed device status data field
source§fn stacker_full(&self) -> StackerFull
fn stacker_full(&self) -> StackerFull
Get the stacker full device status data field
source§fn set_stacker_full(&mut self, stacker_full: StackerFull)
fn set_stacker_full(&mut self, stacker_full: StackerFull)
Set the stacker full device status data field
source§fn cassette_attached(&self) -> CassetteAttached
fn cassette_attached(&self) -> CassetteAttached
Get the cassette attached device status data field
source§fn set_cassette_attached(&mut self, cassette_attached: CassetteAttached)
fn set_cassette_attached(&mut self, cassette_attached: CassetteAttached)
Set the cassette attached device status data field
source§fn cash_box_status(&self) -> CashBoxStatus
fn cash_box_status(&self) -> CashBoxStatus
Get the status of the cash box
source§fn set_paused(&mut self, paused: Paused)
fn set_paused(&mut self, paused: Paused)
Set the paused device status data field
source§fn calibration(&self) -> Calibration
fn calibration(&self) -> Calibration
Get the calibration in progress device status data field
source§fn set_calibration(&mut self, calibration: Calibration)
fn set_calibration(&mut self, calibration: Calibration)
Set the calibration in progress device status data field
source§fn power_up(&self) -> PowerUpStatus
fn power_up(&self) -> PowerUpStatus
Get the power up status data field
source§fn set_power_up(&mut self, power_up: PowerUpStatus)
fn set_power_up(&mut self, power_up: PowerUpStatus)
Set the power up status data field
source§fn invalid_command(&self) -> InvalidCommand
fn invalid_command(&self) -> InvalidCommand
Get the invalid command data field
source§fn set_invalid_command(&mut self, invalid_command: InvalidCommand)
fn set_invalid_command(&mut self, invalid_command: InvalidCommand)
Set the invalid command data field
source§fn set_failure(&mut self, failure: Failure)
fn set_failure(&mut self, failure: Failure)
Set the failure data field
source§fn note_value(&self) -> StandardDenomination
fn note_value(&self) -> StandardDenomination
Get the note value data field
source§fn set_note_value(&mut self, note_value: StandardDenomination)
fn set_note_value(&mut self, note_value: StandardDenomination)
Set the note value data field
source§fn transport_open(&self) -> TransportOpen
fn transport_open(&self) -> TransportOpen
Get the transport open data field
source§fn set_transport_open(&mut self, transport_open: TransportOpen)
fn set_transport_open(&mut self, transport_open: TransportOpen)
Set the transport open data field
source§fn set_stalled(&mut self, stalled: Stalled)
fn set_stalled(&mut self, stalled: Stalled)
Set the stalled data field
source§fn flash_download(&self) -> FlashDownload
fn flash_download(&self) -> FlashDownload
Get the flash download data field
source§fn set_flash_download(&mut self, flash_download: FlashDownload)
fn set_flash_download(&mut self, flash_download: FlashDownload)
Set the flash download data field
source§fn set_pre_stack(&mut self, pre_stack: PreStack)
fn set_pre_stack(&mut self, pre_stack: PreStack)
Set the pre-stack data field
source§fn raw_barcode(&self) -> RawBarcode
fn raw_barcode(&self) -> RawBarcode
Get the raw barcode data field
source§fn set_raw_barcode(&mut self, raw_barcode: RawBarcode)
fn set_raw_barcode(&mut self, raw_barcode: RawBarcode)
Set the raw barcode data field
source§fn device_capabilities(&self) -> DeviceCapabilities
fn device_capabilities(&self) -> DeviceCapabilities
Get the device capabilities data field
source§fn set_device_capabilities(&mut self, device_capabilities: DeviceCapabilities)
fn set_device_capabilities(&mut self, device_capabilities: DeviceCapabilities)
Set the device capabilities data field
source§fn set_disabled(&mut self, disabled: Disabled)
fn set_disabled(&mut self, disabled: Disabled)
Set the disabled data field
source§impl PartialEq for NoteRetrievedEvent
impl PartialEq for NoteRetrievedEvent
impl Copy for NoteRetrievedEvent
impl StructuralPartialEq for NoteRetrievedEvent
Auto Trait Implementations§
impl Freeze for NoteRetrievedEvent
impl RefUnwindSafe for NoteRetrievedEvent
impl Send for NoteRetrievedEvent
impl Sync for NoteRetrievedEvent
impl Unpin for NoteRetrievedEvent
impl UnwindSafe for NoteRetrievedEvent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)