pub struct Callbacks {
pub quorum_notification_fn: Option<fn(hande: &Handle, context: u64, quorate: bool, node_list: Vec<Node>)>,
pub nodelist_notification_fn: Option<fn(hande: &Handle, context: u64, ring_id: RingId, node_list: Vec<NodeId>)>,
pub expectedvotes_notification_fn: Option<fn(handle: &Handle, context: u64, expected_votes: u32)>,
}Expand description
Callbacks that can be called from votequorum, pass these in to initialize
Fields§
§quorum_notification_fn: Option<fn(hande: &Handle, context: u64, quorate: bool, node_list: Vec<Node>)>§nodelist_notification_fn: Option<fn(hande: &Handle, context: u64, ring_id: RingId, node_list: Vec<NodeId>)>§expectedvotes_notification_fn: Option<fn(handle: &Handle, context: u64, expected_votes: u32)>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Callbacks
impl RefUnwindSafe for Callbacks
impl Send for Callbacks
impl Sync for Callbacks
impl Unpin for Callbacks
impl UnwindSafe for Callbacks
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