[][src]Struct nakadion::components::committer::Committer

pub struct Committer<C> { /* fields omitted */ }

Commits cursors for a stream

Committer is bound to a given subscription and stream. It has to be configured with its mutating methods.

Implementations

impl<C> Committer<C> where
    C: SubscriptionCommitApi + Send + Sync + 'static, 
[src]

pub fn new(
    client: C,
    subscription_id: SubscriptionId,
    stream_id: StreamId
) -> Self
[src]

Create a new instance bound to the given subscription and stream

pub fn set_logger<L: Logger>(&mut self, logger: L)[src]

pub fn logger<L: Logger>(self, logger: L) -> Self[src]

pub fn instrumentation(&self) -> Instrumentation[src]

pub fn set_flow_id(&mut self, flow_id: FlowId)[src]

pub fn set_config(&mut self, config: CommitConfig)[src]

pub fn set_instrumentation(&mut self, instrumentation: Instrumentation)[src]

pub fn subscription_id(&self) -> SubscriptionId[src]

pub fn stream_id(&self) -> StreamId[src]

pub fn config(&self) -> &CommitConfig[src]

pub async fn commit<'_, '_>(
    &'_ self,
    cursors: &'_ [SubscriptionCursor]
) -> Result<CursorCommitResults, CommitError>
[src]

Auto Trait Implementations

impl<C> !RefUnwindSafe for Committer<C>

impl<C> Send for Committer<C> where
    C: Send

impl<C> Sync for Committer<C> where
    C: Sync

impl<C> Unpin for Committer<C> where
    C: Unpin

impl<C> !UnwindSafe for Committer<C>

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<T> From<T> for T[src]

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

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>,