async fn all_mouse_bindings() -> Result<Vec<MouseBinding>, Error> {
    let device_proxies = input_device::all_devices(input_device::InputDeviceType::Mouse).await?;
    let mut device_bindings: Vec<MouseBinding> = vec![];

    for device_proxy in device_proxies {
        let device_binding: MouseBinding =
            input_device::InputDeviceBinding::new(device_proxy).await?;
        device_bindings.push(device_binding);
    }

    Ok(device_bindings)
}
/// Returns a vector of [`MouseBindings`] for all currently connected mice.
///
/// # Errors
/// If there was an error binding to any mouse.
Returns a vector of [`MouseBindings`] for all currently connected mice.
Returns a vector of [ ` MouseBindings ` ] for all currently connected mice .
async fn all_mouse_bindings() -> Result<Vec<MouseBinding>, Error> {
    let device_proxies = input_device::all_devices(input_device::InputDeviceType::Mouse).await?;
    let mut device_bindings: Vec<MouseBinding> = vec![];
    for device_proxy in device_proxies {
        let device_binding: MouseBinding =
            input_device::InputDeviceBinding::new(device_proxy).await?;
        device_bindings.push(device_binding);
    }
    Ok(device_bindings)
}
async fn all_mouse_bindings ( ) -> Result < Vec < MouseBinding > , Error > { let device_proxies = input_device :: all_devices ( input_device :: InputDeviceType :: Mouse ) . await ? ; let mut device_bindings : Vec < MouseBinding > = vec ! [ ] ; for device_proxy in device_proxies { let device_binding : MouseBinding = input_device :: InputDeviceBinding :: new ( device_proxy ) . await ? ; device_bindings . push ( device_binding ) ; } Ok ( device_bindings ) }
Returns a vector of [`MouseBindings`] for all currently connected mice.
Returns a vector of [ ` MouseBindings ` ] for all currently connected mice .
errors
If there was an error binding to any mouse.
If there was an error binding to any mouse .