[][src]Enum abscissa_core::Shutdown

pub enum Shutdown {

Types of shutdown recognized by Abscissa



Graceful shutdowns may take prolonged periods of time, allowing components to take their time to ensure shutdowns occur cleanly (e.g. draining currently active traffic rather than closing sockets)


Forced shutdowns indicate the program's user has requested it terminate immediately. Components receiving this kind of shutdown should do only critical cleanup tasks which can be completed quickly.


This shutdown type is a "best effort" to communicate that the application has suffered from a critical error and is in the process of exiting. Components may use this to do crash reporting prior to the application exit, as well as any other cleanup deemed suitable within a crashing application.

Trait Implementations

impl PartialEq<Shutdown> for Shutdown[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Clone for Shutdown[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for Shutdown[src]

impl Copy for Shutdown[src]

impl Debug for Shutdown[src]

impl Hash for Shutdown[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized