pub struct INPUT_DEVICES;Expand description
Input devices info service.
Note that this service data will depend on what APP.device_events_filter is set.
Implementations§
Source§impl INPUT_DEVICES
impl INPUT_DEVICES
Sourcepub fn available_devices(&self) -> Var<HashMap<InputDeviceId, InputDeviceInfo>>
pub fn available_devices(&self) -> Var<HashMap<InputDeviceId, InputDeviceInfo>>
Read-only variable that tracks the current input devices.
Sourcepub fn device(&self, id: InputDeviceId) -> Var<InputDeviceInfo>
pub fn device(&self, id: InputDeviceId) -> Var<InputDeviceInfo>
Read-only variable that tracks the input device info.
If the id is unknown returns an “Unknown Input Device” info.
Auto Trait Implementations§
impl Freeze for INPUT_DEVICES
impl RefUnwindSafe for INPUT_DEVICES
impl Send for INPUT_DEVICES
impl Sync for INPUT_DEVICES
impl Unpin for INPUT_DEVICES
impl UnwindSafe for INPUT_DEVICES
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more