pub struct DeviceEvents {
pub info: Option<Box<dyn FnMut(&DeviceInfo<'_>) + Send>>,
pub param: Option<Box<dyn FnMut(u32, ParamType, u32, u32, &RawPodOwned) + Send>>,
}Expand description
Device events that can be subscribed to.
Fields§
§info: Option<Box<dyn FnMut(&DeviceInfo<'_>) + Send>>Device information became available, or changed.
param: Option<Box<dyn FnMut(u32, ParamType, u32, u32, &RawPodOwned) + Send>>Device permissions, notified due to a Device::subscribe_params or Device::enum_params call.
Trait Implementations§
Source§impl Default for DeviceEvents
impl Default for DeviceEvents
Source§fn default() -> DeviceEvents
fn default() -> DeviceEvents
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceEvents
impl !RefUnwindSafe for DeviceEvents
impl Send for DeviceEvents
impl !Sync for DeviceEvents
impl Unpin for DeviceEvents
impl !UnwindSafe for DeviceEvents
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