pub enum DriverIndexRequest {
MatchDriver {
args: MatchDriverArgs,
responder: DriverIndexMatchDriverResponder,
},
WaitForBaseDrivers {
responder: DriverIndexWaitForBaseDriversResponder,
},
MatchDriversV1 {
args: MatchDriverArgs,
responder: DriverIndexMatchDriversV1Responder,
},
AddCompositeNodeSpec {
payload: CompositeNodeSpec,
responder: DriverIndexAddCompositeNodeSpecResponder,
},
}
Expand description
Protocol through which the driver index can be queried.
Variants§
MatchDriver
Match a set of device arguments to a driver package URL.
WaitForBaseDrivers
Fields
§
responder: DriverIndexWaitForBaseDriversResponder
This function will block until base drivers are loaded.
MatchDriversV1
This function returns a vector of drivers that match a device. This should only be used by DFv1 and should be removed. If more than MAX drivers match, only MAX drivers will be returned.
AddCompositeNodeSpec
Adds a composite node spec to the driver index. The driver index stores the composite node spec and maps it by the name. The stored composite node specs are included in the driver matching process.
Implementations§
source§impl DriverIndexRequest
impl DriverIndexRequest
pub fn into_match_driver( self ) -> Option<(MatchDriverArgs, DriverIndexMatchDriverResponder)>
pub fn into_wait_for_base_drivers( self ) -> Option<DriverIndexWaitForBaseDriversResponder>
pub fn into_match_drivers_v1( self ) -> Option<(MatchDriverArgs, DriverIndexMatchDriversV1Responder)>
pub fn into_add_composite_node_spec( self ) -> Option<(CompositeNodeSpec, DriverIndexAddCompositeNodeSpecResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL