[][src]Enum nakadion::instrumentation::CommitTrigger

pub enum CommitTrigger {
    Deadline {
        n_batches: usize,
        n_events: usize,
    },
    Events {
        n_batches: usize,
        n_events: usize,
    },
    Batches {
        n_batches: usize,
        n_events: usize,
    },
}

Variants

Deadline

The deadline to commit was reached

Fields of Deadline

n_batches: usizen_events: usize
Events

Enough events were received

Fields of Events

n_batches: usizen_events: usize
Batches

Enough cursors were received

Fields of Batches

n_batches: usizen_events: usize

Implementations

impl CommitTrigger[src]

pub fn stats(&self) -> (usize, usize)[src]

pub fn n_batches(&self) -> usize[src]

pub fn n_events(&self) -> usize[src]

Trait Implementations

impl Clone for CommitTrigger[src]

impl Copy for CommitTrigger[src]

impl Debug for CommitTrigger[src]

impl Eq for CommitTrigger[src]

impl PartialEq<CommitTrigger> for CommitTrigger[src]

impl StructuralEq for CommitTrigger[src]

impl StructuralPartialEq for CommitTrigger[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,