pub struct QueryVariantIdReply { /* private fields */ }Expand description
Query Variant ID - Reply (Subtype 0x0F)
The part number is composed of a project number (5-6 digits) and version number (3 digits) with an optional Check sum digit in the middle.
The Query Variant ID Reply is formatted as follows:
| Name | STX | LEN | CTRL | Data 0 | Data 1 | … | Data 8 | ETX | CHK |
|---|---|---|---|---|---|---|---|---|---|
| Byte | 0 | 1 | 2 | 3 | 4 | … | 11 | 12 | 13 |
| Value | 0x02 | 0x0E | 0x6n | nn | nn | nn | nn | 0x03 | zz |
The part number is composed of a project number (5-6 digits) and version number (3 digits) with an optional Check sum digit in the middle.
See ProjectNumber for formatting details.
Implementations§
Source§impl QueryVariantIdReply
impl QueryVariantIdReply
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new QueryVariantIdReply.
Sourcepub fn variant_part_number(&self) -> VariantPartNumber
pub fn variant_part_number(&self) -> VariantPartNumber
Gets the VariantPartNumber.
Sourcepub fn project_number(&self) -> ProjectNumber
pub fn project_number(&self) -> ProjectNumber
Gets the ProjectNumber parsed from the raw byte buffer.
On invalid ranges, returns a zeroed ProjectNumber.
Sourcepub fn version(&self) -> PartVersion
pub fn version(&self) -> PartVersion
Gets the PartVersion.
Trait Implementations§
Source§impl Clone for QueryVariantIdReply
impl Clone for QueryVariantIdReply
Source§fn clone(&self) -> QueryVariantIdReply
fn clone(&self) -> QueryVariantIdReply
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 QueryVariantIdReply
impl Debug for QueryVariantIdReply
Source§impl Default for QueryVariantIdReply
impl Default for QueryVariantIdReply
Source§fn default() -> QueryVariantIdReply
fn default() -> QueryVariantIdReply
Returns the “default value” for a type. Read more
Source§impl Display for QueryVariantIdReply
impl Display for QueryVariantIdReply
Source§impl From<&QueryVariantIdReply> for OmnibusReply
impl From<&QueryVariantIdReply> for OmnibusReply
Source§fn from(reply: &QueryVariantIdReply) -> Self
fn from(reply: &QueryVariantIdReply) -> Self
Converts to this type from the input type.
Source§impl From<QueryVariantIdReply> for OmnibusReply
impl From<QueryVariantIdReply> for OmnibusReply
Source§fn from(reply: QueryVariantIdReply) -> Self
fn from(reply: QueryVariantIdReply) -> Self
Converts to this type from the input type.
Source§impl MessageOps for QueryVariantIdReply
impl MessageOps for QueryVariantIdReply
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 QueryVariantIdReply
impl OmnibusReplyOps for QueryVariantIdReply
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 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 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 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 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 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 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 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§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§impl PartialEq for QueryVariantIdReply
impl PartialEq for QueryVariantIdReply
impl Copy for QueryVariantIdReply
impl StructuralPartialEq for QueryVariantIdReply
Auto Trait Implementations§
impl Freeze for QueryVariantIdReply
impl RefUnwindSafe for QueryVariantIdReply
impl Send for QueryVariantIdReply
impl Sync for QueryVariantIdReply
impl Unpin for QueryVariantIdReply
impl UnwindSafe for QueryVariantIdReply
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