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