pub enum DriverIndexRequest {
MatchDriver {
args: MatchDriverArgs,
responder: DriverIndexMatchDriverResponder,
},
WatchForDriverLoad {
responder: DriverIndexWatchForDriverLoadResponder,
},
AddCompositeNodeSpec {
payload: CompositeNodeSpec,
responder: DriverIndexAddCompositeNodeSpecResponder,
},
RebindCompositeNodeSpec {
spec: String,
driver_url_suffix: Option<String>,
responder: DriverIndexRebindCompositeNodeSpecResponder,
},
}
Expand description
Protocol through which the driver index can be queried.
Variants§
MatchDriver
Match a set of device arguments to a driver package URL.
WatchForDriverLoad
Hanging get function that replies when a boot or base driver is loaded into the Driver Index.
Fields
§
responder: DriverIndexWatchForDriverLoadResponder
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.
RebindCompositeNodeSpec
Rematch the composite node spec to a composite driver. If a driver url suffix is provided, the composite node spec will only be matched against drivers with URLS that end with the suffix.
Implementations§
source§impl DriverIndexRequest
impl DriverIndexRequest
pub fn into_match_driver( self ) -> Option<(MatchDriverArgs, DriverIndexMatchDriverResponder)>
pub fn into_watch_for_driver_load( self ) -> Option<DriverIndexWatchForDriverLoadResponder>
pub fn into_add_composite_node_spec( self ) -> Option<(CompositeNodeSpec, DriverIndexAddCompositeNodeSpecResponder)>
pub fn into_rebind_composite_node_spec( self ) -> Option<(String, Option<String>, DriverIndexRebindCompositeNodeSpecResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DriverIndexRequest
impl !RefUnwindSafe for DriverIndexRequest
impl Send for DriverIndexRequest
impl Sync for DriverIndexRequest
impl Unpin for DriverIndexRequest
impl !UnwindSafe for DriverIndexRequest
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