Enum ssp::types::ProtocolVersion
source · #[repr(u8)]pub enum ProtocolVersion {
One,
Two,
Three,
Four,
Five,
Six,
Seven,
Eight,
Reserved,
}Expand description
Protocol version supported by device firmware
The highest protocol version a device will support is determined by its firmware.
| NV9USB |
|---|
| Protocol Version | Firmware Version |
|---|---|
| 6 | 3.27 |
| 7 | 3.33 |
| 8 | - |
| NV11 |
|---|
| Protocol Version | Firmware Version |
|---|---|
| 6 | 3.27 |
| 7 | 3.33 |
| 8 | - |
| NV200 |
|---|
| Protocol Version | Firmware Version |
|---|---|
| 6 | 4.07 |
| 7 | 4.08 |
| 8 | 4.09 |
| SMART Payout |
|---|
| Protocol Version | Firmware Version |
|---|---|
| 6 | 4.07 |
| 7 | 4.08 |
| 8 | 4.09 |
| SMART Hopper |
|---|
| Protocol Version | Firmware Version |
|---|---|
| 6 | 6.03 |
| 7 | 6.09 |
| 8 | - |
Variants§
Implementations§
source§impl ProtocolVersion
impl ProtocolVersion
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new ProtocolVersion.
Default value is 0x06, since this seems to be the base protocol for most devices.
sourcepub const fn from_u8(val: u8) -> Self
pub const fn from_u8(val: u8) -> Self
Converts a u8 into a ProtocolVersion.
sourcepub const fn to_u8(&self) -> u8
pub const fn to_u8(&self) -> u8
Converts a ProtocolVersion into a u8.
Trait Implementations§
source§impl Clone for ProtocolVersion
impl Clone for ProtocolVersion
source§fn clone(&self) -> ProtocolVersion
fn clone(&self) -> ProtocolVersion
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 ProtocolVersion
impl Debug for ProtocolVersion
source§impl Default for ProtocolVersion
impl Default for ProtocolVersion
source§impl<'de> Deserialize<'de> for ProtocolVersion
impl<'de> Deserialize<'de> for ProtocolVersion
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ProtocolVersion
impl Display for ProtocolVersion
source§impl From<&ProtocolVersion> for &'static str
impl From<&ProtocolVersion> for &'static str
source§fn from(val: &ProtocolVersion) -> Self
fn from(val: &ProtocolVersion) -> Self
Converts to this type from the input type.
source§impl From<&ProtocolVersion> for EnableEvent
impl From<&ProtocolVersion> for EnableEvent
source§fn from(val: &ProtocolVersion) -> Self
fn from(val: &ProtocolVersion) -> Self
Converts to this type from the input type.
source§impl From<&ProtocolVersion> for u8
impl From<&ProtocolVersion> for u8
source§fn from(val: &ProtocolVersion) -> Self
fn from(val: &ProtocolVersion) -> Self
Converts to this type from the input type.
source§impl From<ProtocolVersion> for &'static str
impl From<ProtocolVersion> for &'static str
source§fn from(val: ProtocolVersion) -> Self
fn from(val: ProtocolVersion) -> Self
Converts to this type from the input type.
source§impl From<ProtocolVersion> for EnableEvent
impl From<ProtocolVersion> for EnableEvent
source§fn from(val: ProtocolVersion) -> Self
fn from(val: ProtocolVersion) -> Self
Converts to this type from the input type.
source§impl From<ProtocolVersion> for u8
impl From<ProtocolVersion> for u8
source§fn from(val: ProtocolVersion) -> Self
fn from(val: ProtocolVersion) -> Self
Converts to this type from the input type.
source§impl From<u8> for ProtocolVersion
impl From<u8> for ProtocolVersion
source§impl PartialEq<ProtocolVersion> for ProtocolVersion
impl PartialEq<ProtocolVersion> for ProtocolVersion
source§fn eq(&self, other: &ProtocolVersion) -> bool
fn eq(&self, other: &ProtocolVersion) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ProtocolVersion
impl Serialize for ProtocolVersion
impl Copy for ProtocolVersion
impl StructuralPartialEq for ProtocolVersion
Auto Trait Implementations§
impl RefUnwindSafe for ProtocolVersion
impl Send for ProtocolVersion
impl Sync for ProtocolVersion
impl Unpin for ProtocolVersion
impl UnwindSafe for ProtocolVersion
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