Struct rust_corosync::cmap::NotifyCallback
source · [−]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
sourceimpl Clone for NotifyCallback
impl Clone for NotifyCallback
sourcefn clone(&self) -> NotifyCallback
fn clone(&self) -> NotifyCallback
Returns a copy of the value. Read more
1.0.0 · sourcefn 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 RefUnwindSafe for NotifyCallback
impl Send for NotifyCallback
impl Sync for NotifyCallback
impl Unpin for NotifyCallback
impl UnwindSafe for NotifyCallback
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more