#[non_exhaustive]#[repr(u8)]pub enum DualPlatformSelection {
IosOrMac = 0,
AndroidOrWindows = 1,
}Expand description
The platform a DualPlatformFeature device is configured for.
The selection is persistent and chosen by the user during pairing or by short pressing an OS-selection button; there is no default.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for DualPlatformSelection
impl Clone for DualPlatformSelection
Source§fn clone(&self) -> DualPlatformSelection
fn clone(&self) -> DualPlatformSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DualPlatformSelection
Source§impl Debug for DualPlatformSelection
impl Debug for DualPlatformSelection
impl Eq for DualPlatformSelection
Source§impl From<DualPlatformSelection> for u8
impl From<DualPlatformSelection> for u8
Source§fn from(enum_value: DualPlatformSelection) -> Self
fn from(enum_value: DualPlatformSelection) -> Self
Converts to this type from the input type.
Source§impl Hash for DualPlatformSelection
impl Hash for DualPlatformSelection
Source§impl PartialEq for DualPlatformSelection
impl PartialEq for DualPlatformSelection
impl StructuralPartialEq for DualPlatformSelection
Source§impl TryFrom<u8> for DualPlatformSelection
impl TryFrom<u8> for DualPlatformSelection
Source§type Error = TryFromPrimitiveError<DualPlatformSelection>
type Error = TryFromPrimitiveError<DualPlatformSelection>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for DualPlatformSelection
impl TryFromPrimitive for DualPlatformSelection
const NAME: &'static str = "DualPlatformSelection"
type Primitive = u8
type Error = TryFromPrimitiveError<DualPlatformSelection>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for DualPlatformSelection
impl RefUnwindSafe for DualPlatformSelection
impl Send for DualPlatformSelection
impl Sync for DualPlatformSelection
impl Unpin for DualPlatformSelection
impl UnsafeUnpin for DualPlatformSelection
impl UnwindSafe for DualPlatformSelection
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