[−][src]Struct nakadion::components::committer::Committer
Commits cursors for a stream
Committer
is bound to a given subscription and stream.
It has to be configured with its mutating methods.
Methods
impl<C> Committer<C> where
C: SubscriptionCommitApi + Send + Sync + 'static,
[src]
C: SubscriptionCommitApi + Send + Sync + 'static,
pub fn new(
client: C,
subscription_id: SubscriptionId,
stream_id: StreamId
) -> Self
[src]
client: C,
subscription_id: SubscriptionId,
stream_id: StreamId
) -> Self
Create a new instance bound to the given subscription and stream
pub fn run(self) -> (CommitHandle, BoxFuture<'static, Result<(), Error>>)
[src]
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]
&'_ self,
cursors: &'_ [SubscriptionCursor]
) -> Result<CursorCommitResults, CommitError>
Auto Trait Implementations
impl<C> !RefUnwindSafe for Committer<C>
impl<C> Send for Committer<C> where
C: Send,
C: Send,
impl<C> Sync for Committer<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Committer<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for Committer<C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,