#[non_exhaustive]pub struct HostPlatform {
pub host_index: HostIndex,
pub status: u8,
pub platform_index: Option<u8>,
pub source: PlatformSource,
pub auto_platform_index: Option<u8>,
pub auto_descriptor_index: Option<u8>,
}Expand description
Platform selection for a host slot.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.host_index: HostIndexHost slot index returned by the device.
status: u8Raw host status byte.
platform_index: Option<u8>Selected platform, or None when undefined.
source: PlatformSourceSource of the platform selection.
auto_platform_index: Option<u8>Automatically detected platform, if available.
auto_descriptor_index: Option<u8>Automatically matched platform descriptor, if available.
Trait Implementations§
Source§impl Clone for HostPlatform
impl Clone for HostPlatform
Source§fn clone(&self) -> HostPlatform
fn clone(&self) -> HostPlatform
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 HostPlatform
Source§impl Debug for HostPlatform
impl Debug for HostPlatform
impl Eq for HostPlatform
Source§impl Hash for HostPlatform
impl Hash for HostPlatform
Source§impl PartialEq for HostPlatform
impl PartialEq for HostPlatform
impl StructuralPartialEq for HostPlatform
Auto Trait Implementations§
impl Freeze for HostPlatform
impl RefUnwindSafe for HostPlatform
impl Send for HostPlatform
impl Sync for HostPlatform
impl Unpin for HostPlatform
impl UnsafeUnpin for HostPlatform
impl UnwindSafe for HostPlatform
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