pub enum DeviceRequest {
Inject {
events: Vec<Event>,
responder: DeviceInjectResponder,
},
}
Expand description
The channel for injecting pointer events into a target. The associated |Config| applies to injected pointer events.
A |Device| may inject pointer events into a target in the scene, but the dispatch of pointer events to UI clients within that target’s view tree will depend on the dispatch policy and the scene topology.
Variants§
Inject
Injects events into a target.
Batching: The caller is expected to batch-inject all events that share the same timestamp (e.g., multiple finger samples). There may be multiple such batches per injection call.
Flow control: The caller is allowed at most one in-flight |Inject| call at at time: subsequent |Inject| calls must wait until the acknowledgment returns. Non-compliance results in channel closure.
Implementations§
Source§impl DeviceRequest
impl DeviceRequest
pub fn into_inject(self) -> Option<(Vec<Event>, DeviceInjectResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL