device_query 4.0.1

A basic library for querying keyboard and mouse state on-demand without a window.
Documentation
1
2
3
4
5
6
7
8
9
10
//! Callback guard.

use std::sync::Arc;

/// Callback guard returned when adding a callback as an event listener. If the guard is dropped,
/// the event listener is removed.
#[derive(Debug)]
pub struct CallbackGuard<Callback> {
    pub(crate) _callback: Arc<Callback>,
}