pub enum ShutdownMode {
Ordered,
Concurrent,
}Expand description
How a supervisor shuts its children down.
Variants§
Ordered
Shut children down one at a time, in reverse order of starting (last-started first).
This is the default, and is appropriate when later children may depend on earlier ones: each child is fully stopped before the next is signalled.
Concurrent
Shut all children down at once and wait for them concurrently.
Total shutdown time is bounded by the slowest child rather than the sum of all children, which suits large, independent child sets – for example, one task per network connection.
Trait Implementations§
Source§impl Clone for ShutdownMode
impl Clone for ShutdownMode
Source§fn clone(&self) -> ShutdownMode
fn clone(&self) -> ShutdownMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShutdownMode
Source§impl Debug for ShutdownMode
impl Debug for ShutdownMode
Source§impl Default for ShutdownMode
impl Default for ShutdownMode
Source§fn default() -> ShutdownMode
fn default() -> ShutdownMode
Returns the “default value” for a type. Read more
impl Eq for ShutdownMode
Source§impl PartialEq for ShutdownMode
impl PartialEq for ShutdownMode
Source§fn eq(&self, other: &ShutdownMode) -> bool
fn eq(&self, other: &ShutdownMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ShutdownMode
Auto Trait Implementations§
impl Freeze for ShutdownMode
impl RefUnwindSafe for ShutdownMode
impl Send for ShutdownMode
impl Sync for ShutdownMode
impl Unpin for ShutdownMode
impl UnsafeUnpin for ShutdownMode
impl UnwindSafe for ShutdownMode
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
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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