MCPcopy Create free account
hub / github.com/corosync/corosync / dispatch

Function dispatch

bindings/rust/src/quorum.rs:245–252  ·  view source on GitHub ↗

Display any/all active QUORUM callbacks for this [Handle], see [DispatchFlags] for details

(handle: &Handle, flags: DispatchFlags)

Source from the content-addressed store, hash-verified

243
244/// Display any/all active QUORUM callbacks for this [Handle], see [DispatchFlags] for details
245pub fn dispatch(handle: &Handle, flags: DispatchFlags) -> Result<()> {
246 let res = unsafe { ffi::quorum_dispatch(handle.quorum_handle, flags as u32) };
247 if res == ffi::CS_OK {
248 Ok(())
249 } else {
250 Err(CsError::from_c(res))
251 }
252}
253
254/// Return the quorate status of the cluster
255pub fn getquorate(handle: &Handle) -> Result<bool> {

Callers

nothing calls this directly

Calls 1

quorum_dispatchFunction · 0.85

Tested by

no test coverage detected