[][src]Enum nakadion::components::committer::CommitTrigger

pub enum CommitTrigger {
    Deadline {
        n_cursors: usize,
        n_events: Option<usize>,
    },
    Events {
        n_cursors: usize,
        n_events: Option<usize>,
    },
    Cursors {
        n_cursors: usize,
        n_events: Option<usize>,
    },
}

The reason why data was committed if working in background mode

Variants

Deadline

The deadline to commit was reached

Fields of Deadline

n_cursors: usizen_events: Option<usize>
Events

Enough events were received

Fields of Events

n_cursors: usizen_events: Option<usize>
Cursors

Enough cursors were received

Fields of Cursors

n_cursors: usizen_events: Option<usize>

Implementations

impl CommitTrigger[src]

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

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

pub fn n_events(&self) -> Option<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>,