pub enum EventKind {
Sync,
Async {
retry: u16,
max_depth: u16,
},
}Expand description
Whether a DEFINE EVENT runs inline with the triggering write or is dispatched asynchronously, and the retry/nesting budget when async.
Variants§
Implementations§
Source§impl EventKind
impl EventKind
Sourcepub const DEFAULT_RETRY: u16 = 1
pub const DEFAULT_RETRY: u16 = 1
Retry budget applied to ASYNC events that do not name one.
Sourcepub const DEFAULT_MAX_DEPTH: u16 = 3
pub const DEFAULT_MAX_DEPTH: u16 = 3
Nesting budget applied to ASYNC events that do not name one.
Trait Implementations§
impl Eq for EventKind
impl StructuralPartialEq for EventKind
Auto Trait Implementations§
impl Freeze for EventKind
impl RefUnwindSafe for EventKind
impl Send for EventKind
impl Sync for EventKind
impl Unpin for EventKind
impl UnsafeUnpin for EventKind
impl UnwindSafe for EventKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.