#[repr(u8)]
pub enum Property {
Show 14 variants
Unknown,
MajorVersion,
MinorVersion,
PatchVersion,
DeviceName,
DeviceSerialNumber,
DeviceVersion,
DeviceMcu,
FirmwareName,
FirmwareVersion,
DeviceVendor,
OsType,
OsVersion,
HostSoftwareName,
}
Variants
Unknown
MajorVersion
MinorVersion
PatchVersion
DeviceName
DeviceSerialNumber
DeviceVersion
DeviceMcu
FirmwareName
FirmwareVersion
DeviceVendor
OsType
OsVersion
HostSoftwareName
Trait Implementations
sourceimpl TryFrom<u8> for Property
impl TryFrom<u8> for Property
type Error = TryFromPrimitiveError<Property>
type Error = TryFromPrimitiveError<Property>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for Property
impl TryFromPrimitive for Property
type Primitive = u8
const NAME: &'static str = "Property"
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Property
impl Eq for Property
impl StructuralEq for Property
impl StructuralPartialEq for Property
Auto Trait Implementations
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more