pub struct DriverInfo {
pub url: Option<String>,
pub name: Option<String>,
pub colocate: Option<bool>,
pub package_type: Option<DriverPackageType>,
pub is_fallback: Option<bool>,
pub device_categories: Option<Vec<DeviceCategory>>,
pub bind_rules_bytecode: Option<Vec<u8>>,
pub driver_framework_version: Option<u8>,
pub is_disabled: Option<bool>,
/* private fields */
}Expand description
General information for a driver, used with both composite and normal drivers.
Fields§
§url: Option<String>URL of the driver component.
name: Option<String>Name of the driver, taken from the first field of the ZIRCON_DRIVER
macro in the driver.
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. Fallback drivers have a lesser priority for binding, so they will only be chosen for binding if there is no non-fallback driver that has matched.
device_categories: Option<Vec<DeviceCategory>>Device categories
bind_rules_bytecode: Option<Vec<u8>>Bind rules which declare set of constraints to evaluate in order to determine whether the driver indexer should bind this driver to a device.
driver_framework_version: Option<u8>The version of the driver framework that this driver is using. Supported values are 1 (DFv1) and 2 (DFv2). If not provided, 1 is the assumed version.
is_disabled: Option<bool>Whether the driver is disabled. If true, this driver is not chosen to bind to nodes.
Trait Implementations§
Source§impl Clone for DriverInfo
impl Clone for DriverInfo
Source§impl Debug for DriverInfo
impl Debug for DriverInfo
Source§impl<D: ResourceDialect> Decode<DriverInfo, D> for DriverInfo
impl<D: ResourceDialect> Decode<DriverInfo, D> for DriverInfo
Source§impl Default for DriverInfo
impl Default for DriverInfo
Source§impl<D: ResourceDialect> Encode<DriverInfo, D> for &DriverInfo
impl<D: ResourceDialect> Encode<DriverInfo, D> for &DriverInfo
Source§impl PartialEq for DriverInfo
impl PartialEq for DriverInfo
impl Persistable for DriverInfo
impl StructuralPartialEq for DriverInfo
Source§impl TypeMarker for DriverInfo
impl TypeMarker for DriverInfo
Source§type Owned = DriverInfo
type Owned = DriverInfo
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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 moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
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 DriverInfo
impl ValueTypeMarker for DriverInfo
Source§type Borrowed<'a> = &'a DriverInfo
type Borrowed<'a> = &'a DriverInfo
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read more