pub enum DispatchFlags {
One = 1,
All = 2,
Blocking = 3,
OneNonblocking = 4,
}
Expand description
Flags to use with dispatch functions, eg cpg::dispatch One will dispatch a single callback (blocking) and return. All will loop trying to dispatch all possible callbacks. Blocking is like All but will block between callbacks. OneNonBlocking will dispatch a single callback only if one is available, otherwise it will return even if no callback is available.
Variants§
Trait Implementations§
Source§impl Clone for DispatchFlags
impl Clone for DispatchFlags
Source§fn clone(&self) -> DispatchFlags
fn clone(&self) -> DispatchFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for DispatchFlags
Auto Trait Implementations§
impl Freeze for DispatchFlags
impl RefUnwindSafe for DispatchFlags
impl Send for DispatchFlags
impl Sync for DispatchFlags
impl Unpin for DispatchFlags
impl UnwindSafe for DispatchFlags
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