pub enum DriverIndexRequest {
MatchDriver {
args: MatchDriverArgs,
responder: DriverIndexMatchDriverResponder,
},
AddCompositeNodeSpec {
payload: CompositeNodeSpec,
responder: DriverIndexAddCompositeNodeSpecResponder,
},
RebindCompositeNodeSpec {
spec: String,
driver_url_suffix: Option<String>,
responder: DriverIndexRebindCompositeNodeSpecResponder,
},
SetNotifier {
notifier: ClientEnd<DriverNotifierMarker>,
control_handle: DriverIndexControlHandle,
},
}
Expand description
Protocol through which the driver index can be queried.
Variants§
MatchDriver
Match a set of device arguments to a driver package URL.
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.
Fields
§
responder: DriverIndexRebindCompositeNodeSpecResponder
SetNotifier
Sets the DriverNotifier which is used for reverse communication.
Implementations§
Source§impl DriverIndexRequest
impl DriverIndexRequest
pub fn into_match_driver( self, ) -> Option<(MatchDriverArgs, DriverIndexMatchDriverResponder)>
pub fn into_add_composite_node_spec( self, ) -> Option<(CompositeNodeSpec, DriverIndexAddCompositeNodeSpecResponder)>
pub fn into_rebind_composite_node_spec( self, ) -> Option<(String, Option<String>, DriverIndexRebindCompositeNodeSpecResponder)>
pub fn into_set_notifier( self, ) -> Option<(ClientEnd<DriverNotifierMarker>, DriverIndexControlHandle)>
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