pub enum InvocationMode {
OnNewData,
Always,
}Expand description
Per-callback invocation mode.
Controls whether a callback fires only when new data is available or on every spin iteration that passes the trigger gate.
Variants§
OnNewData
Fire only when has_data() returns true (default).
Always
Fire on every spin iteration, regardless of data availability.
Trait Implementations§
Source§impl Clone for InvocationMode
impl Clone for InvocationMode
Source§fn clone(&self) -> InvocationMode
fn clone(&self) -> InvocationMode
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 moreSource§impl Debug for InvocationMode
impl Debug for InvocationMode
Source§impl Default for InvocationMode
impl Default for InvocationMode
Source§fn default() -> InvocationMode
fn default() -> InvocationMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for InvocationMode
impl PartialEq for InvocationMode
impl Copy for InvocationMode
impl Eq for InvocationMode
impl StructuralPartialEq for InvocationMode
Auto Trait Implementations§
impl Freeze for InvocationMode
impl RefUnwindSafe for InvocationMode
impl Send for InvocationMode
impl Sync for InvocationMode
impl Unpin for InvocationMode
impl UnsafeUnpin for InvocationMode
impl UnwindSafe for InvocationMode
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