pub struct MatchedDriverInfo {
pub url: Option<String>,
pub driver_url: Option<String>,
pub colocate: Option<bool>,
pub package_type: Option<DriverPackageType>,
pub is_fallback: Option<bool>,
pub device_categories: Option<Vec<DeviceCategory>>,
/* private fields */
}
Expand description
Information for a driver matched by the driver index. This is used by normal and composite drivers.
Fields§
§url: Option<String>
URL of the driver component.
driver_url: Option<String>
URL of the driver library. This should only be used by DriverManager before Drivers-As-Components.
colocate: Option<bool>
If this is true then the driver should be colocated in its parent’s DriverHost.
package_type: Option<DriverPackageType>
The type of package this driver is in.
is_fallback: Option<bool>
If this is true then the driver is a fallback driver.
device_categories: Option<Vec<DeviceCategory>>
Device categories
Implementations§
Trait Implementations§
source§impl Clone for MatchedDriverInfo
impl Clone for MatchedDriverInfo
source§fn clone(&self) -> MatchedDriverInfo
fn clone(&self) -> MatchedDriverInfo
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 MatchedDriverInfo
impl Debug for MatchedDriverInfo
source§impl Decode<MatchedDriverInfo> for MatchedDriverInfo
impl Decode<MatchedDriverInfo> for MatchedDriverInfo
source§impl Encode<MatchedDriverInfo> for &MatchedDriverInfo
impl Encode<MatchedDriverInfo> for &MatchedDriverInfo
source§impl Encode<MatchedDriverInfo> for MatchedDriverInfo
impl Encode<MatchedDriverInfo> for MatchedDriverInfo
source§impl PartialEq<MatchedDriverInfo> for MatchedDriverInfo
impl PartialEq<MatchedDriverInfo> for MatchedDriverInfo
source§fn eq(&self, other: &MatchedDriverInfo) -> bool
fn eq(&self, other: &MatchedDriverInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for MatchedDriverInfo
impl TypeMarker for MatchedDriverInfo
§type Owned = MatchedDriverInfo
type Owned = MatchedDriverInfo
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.source§impl ValueTypeMarker for MatchedDriverInfo
impl ValueTypeMarker for MatchedDriverInfo
§type Borrowed<'a> = &'a <MatchedDriverInfo as TypeMarker>::Owned
type Borrowed<'a> = &'a <MatchedDriverInfo as TypeMarker>::Owned
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more