pub struct NotifyCallback {
pub notify_fn: Option<fn(handle: &Handle, track_handle: &TrackHandle, event: TrackType, key_name: &str, new_value: &Data, old_value: &Data, user_data: u64)>,
}Expand description
Callback function called every time a tracker reports a change in a tracked value
Fields§
§notify_fn: Option<fn(handle: &Handle, track_handle: &TrackHandle, event: TrackType, key_name: &str, new_value: &Data, old_value: &Data, user_data: u64)>Trait Implementations§
Source§impl Clone for NotifyCallback
impl Clone for NotifyCallback
Source§fn clone(&self) -> NotifyCallback
fn clone(&self) -> NotifyCallback
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NotifyCallback
Auto Trait Implementations§
impl Freeze for NotifyCallback
impl RefUnwindSafe for NotifyCallback
impl Send for NotifyCallback
impl Sync for NotifyCallback
impl Unpin for NotifyCallback
impl UnwindSafe for NotifyCallback
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