pub enum ShutdownStrategy {
Immediate,
ProcessPending,
}
Expand description
Defines the shutdown behavior for the pipeline.
ShutdownStrategy
determines how the pipeline will behave when it receives
a shutdown signal. It supports two modes:
Immediate
: Stops the entire pipeline, including all tasks, instantly.ProcessPending
: Terminates the data sources, then completes processing of any updates currently pending in the pipeline. This is the default behavior.
§Variants
Immediate
: Immediately stops all pipeline activity without processing any remaining updates.ProcessPending
: Gracefully terminates the data sources and allows the pipeline to finish processing updates that are still in progress or queued.
§Notes
ProcessPending
is the default variant, enabling the pipeline to ensure that no updates are lost during shutdown.
Variants§
Immediate
Stop the whole pipeline immediately.
ProcessPending
Terminate the datasource(s) and finish processing all pending updates.
Trait Implementations§
Source§impl Debug for ShutdownStrategy
impl Debug for ShutdownStrategy
Source§impl Default for ShutdownStrategy
impl Default for ShutdownStrategy
Source§fn default() -> ShutdownStrategy
fn default() -> ShutdownStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ShutdownStrategy
impl PartialEq for ShutdownStrategy
impl StructuralPartialEq for ShutdownStrategy
Auto Trait Implementations§
impl Freeze for ShutdownStrategy
impl RefUnwindSafe for ShutdownStrategy
impl Send for ShutdownStrategy
impl Sync for ShutdownStrategy
impl Unpin for ShutdownStrategy
impl UnwindSafe for ShutdownStrategy
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
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more