[][src]Enum abscissa_core::Shutdown

pub enum Shutdown {
    Graceful,
    Forced,
    Crash,
}

Types of shutdown recognized by Abscissa

Variants

Graceful

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

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.

Crash

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 Clone for Shutdown[src]

impl Copy for Shutdown[src]

impl Debug for Shutdown[src]

impl Eq for Shutdown[src]

impl Hash for Shutdown[src]

impl PartialEq<Shutdown> for Shutdown[src]

impl StructuralEq for Shutdown[src]

impl StructuralPartialEq for Shutdown[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.