#[non_exhaustive]#[repr(u8)]pub enum PlatformSource {
Default = 0,
Auto = 1,
Manual = 2,
Software = 3,
}Expand description
Source of a host-platform selection.
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.
Default = 0
Device default.
Auto = 1
Automatically detected by the device.
Manual = 2
Manually selected on the device.
Software = 3
Set by host software.
Trait Implementations§
Source§impl Clone for PlatformSource
impl Clone for PlatformSource
Source§fn clone(&self) -> PlatformSource
fn clone(&self) -> PlatformSource
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 PlatformSource
Source§impl Debug for PlatformSource
impl Debug for PlatformSource
impl Eq for PlatformSource
Source§impl Hash for PlatformSource
impl Hash for PlatformSource
Source§impl PartialEq for PlatformSource
impl PartialEq for PlatformSource
impl StructuralPartialEq for PlatformSource
Source§impl TryFrom<u8> for PlatformSource
impl TryFrom<u8> for PlatformSource
Source§type Error = TryFromPrimitiveError<PlatformSource>
type Error = TryFromPrimitiveError<PlatformSource>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PlatformSource
impl TryFromPrimitive for PlatformSource
const NAME: &'static str = "PlatformSource"
type Primitive = u8
type Error = TryFromPrimitiveError<PlatformSource>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for PlatformSource
impl RefUnwindSafe for PlatformSource
impl Send for PlatformSource
impl Sync for PlatformSource
impl Unpin for PlatformSource
impl UnsafeUnpin for PlatformSource
impl UnwindSafe for PlatformSource
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