pub enum ShutdownStrategy {
Graceful(Duration),
Brutal,
}Expand description
Strategy for shutting down a process.
Variants§
Graceful(Duration)
Signals the process, then halts it if it hasn’t exited within the given duration.
The duration also covers the children in the process’s scope, which are halted along with it. A halt is reported as an unclean shutdown.
Brutal
Halts the process and everything it owns immediately, without signalling it.
For work with no terminal condition. Not reported as an unclean shutdown.
Trait Implementations§
Source§impl Clone for ShutdownStrategy
impl Clone for ShutdownStrategy
Source§fn clone(&self) -> ShutdownStrategy
fn clone(&self) -> ShutdownStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShutdownStrategy
impl Debug for ShutdownStrategy
impl Copy 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 UnsafeUnpin 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> 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>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Track for T
impl<T> Track for T
§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Instruments this type by attaching the given resource group token, returning a
Tracked wrapper. Read more§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Instruments this type by attaching the current resource group, returning a
Tracked wrapper. Read more