pub enum ShutdownBehavior {
WaitForProcessing,
NackImmediately,
}Expand description
The behavior on shutdown.
Variants§
WaitForProcessing
The subscriber stops reading from the underlying gRPC stream.
The subscriber continues to accept acknowledgements for messages it has delivered to the application. The subscriber continues to extend leases for these messages while it waits on the application to ack/nack them.
The shutdown is complete when all message handles delivered to the application have been consumed, and all pending ack/nack RPCs have completed.
NackImmediately
The subscriber stops reading from the underlying gRPC stream.
The subscriber stops accepting acknowledgements from the application. The subscriber sends all pending acknowledgements to the server. The subscriber nacks all other messages under lease management.
The shutdown is complete when all pending ack/nack RPCs have completed.
Trait Implementations§
Source§impl Clone for ShutdownBehavior
impl Clone for ShutdownBehavior
Source§fn clone(&self) -> ShutdownBehavior
fn clone(&self) -> ShutdownBehavior
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ShutdownBehavior
impl Debug for ShutdownBehavior
Source§impl PartialEq for ShutdownBehavior
impl PartialEq for ShutdownBehavior
impl Copy for ShutdownBehavior
impl StructuralPartialEq for ShutdownBehavior
Auto Trait Implementations§
impl Freeze for ShutdownBehavior
impl RefUnwindSafe for ShutdownBehavior
impl Send for ShutdownBehavior
impl Sync for ShutdownBehavior
impl Unpin for ShutdownBehavior
impl UnsafeUnpin for ShutdownBehavior
impl UnwindSafe for ShutdownBehavior
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request