pub enum AutoShutdown {
Never,
AnySignificant,
AllSignificant,
}Expand description
Policy for automatically shutting a supervisor down based on the termination of its significant children.
A significant child (see ChildSpecification::with_significant) is one whose termination – when it isn’t restarted – can
drive the supervisor to shut down. This mirrors Erlang/OTP’s auto_shutdown supervisor flag, and is how an
unexpected (or intentional) child exit cascades into the supervisor stopping, and thus propagating up the tree,
without that child being restarted.
Variants§
Never
Never shut down automatically; significant children have no special effect. This is the default.
AnySignificant
Shut down as soon as any significant child terminates without being restarted.
AllSignificant
Shut down once all significant children have terminated without being restarted.
Trait Implementations§
Source§impl Clone for AutoShutdown
impl Clone for AutoShutdown
Source§fn clone(&self) -> AutoShutdown
fn clone(&self) -> AutoShutdown
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 AutoShutdown
Source§impl Debug for AutoShutdown
impl Debug for AutoShutdown
Source§impl Default for AutoShutdown
impl Default for AutoShutdown
Source§fn default() -> AutoShutdown
fn default() -> AutoShutdown
Returns the “default value” for a type. Read more
impl Eq for AutoShutdown
Source§impl PartialEq for AutoShutdown
impl PartialEq for AutoShutdown
Source§fn eq(&self, other: &AutoShutdown) -> bool
fn eq(&self, other: &AutoShutdown) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AutoShutdown
Auto Trait Implementations§
impl Freeze for AutoShutdown
impl RefUnwindSafe for AutoShutdown
impl Send for AutoShutdown
impl Sync for AutoShutdown
impl Unpin for AutoShutdown
impl UnsafeUnpin for AutoShutdown
impl UnwindSafe for AutoShutdown
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