pub struct Device;Expand description
The type corresponding to the Device protocol. 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.
Trait Implementations§
Source§impl Discoverable for Device
impl Discoverable for Device
Source§const PROTOCOL_NAME: &'static str = "fuchsia.ui.pointerinjector.Device"
const PROTOCOL_NAME: &'static str = "fuchsia.ui.pointerinjector.Device"
The service name to use to connect to this discoverable protocol.
Source§impl<___H, ___T> DispatchClientMessage<___H, ___T> for Devicewhere
___H: DeviceClientHandler<___T> + Send,
___T: Transport,
impl<___H, ___T> DispatchClientMessage<___H, ___T> for Devicewhere
___H: DeviceClientHandler<___T> + Send,
___T: Transport,
Source§impl<___H, ___T> DispatchLocalClientMessage<___H, ___T> for Devicewhere
___H: DeviceLocalClientHandler<___T>,
___T: Transport,
impl<___H, ___T> DispatchLocalClientMessage<___H, ___T> for Devicewhere
___H: DeviceLocalClientHandler<___T>,
___T: Transport,
Source§impl<___H, ___T> DispatchLocalServerMessage<___H, ___T> for Devicewhere
___H: DeviceLocalServerHandler<___T>,
___T: Transport,
for<'de, 'de> DeviceInjectRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchLocalServerMessage<___H, ___T> for Devicewhere
___H: DeviceLocalServerHandler<___T>,
___T: Transport,
for<'de, 'de> DeviceInjectRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
Source§impl<___H, ___T> DispatchServerMessage<___H, ___T> for Devicewhere
___H: DeviceServerHandler<___T> + Send,
___T: Transport,
for<'de, 'de> DeviceInjectRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl<___H, ___T> DispatchServerMessage<___H, ___T> for Devicewhere
___H: DeviceServerHandler<___T> + Send,
___T: Transport,
for<'de, 'de> DeviceInjectRequest<'de>: Decode<<<___T as Transport>::RecvBuffer as AsDecoder<'de>>::Decoder, Constraint = ()>,
impl StructuralPartialEq for Device
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]