pub enum State {
    Ready,
    Reloading,
    Stopping,
}
Available on Linux only.
Expand description

State of the application.

Variants

Ready

Indicate the service startup is finished, or the service finished loading its configuration.

Reloading

Indicate the service is reloading its configuration.

This is useful to allow the service manager to track the service’s internal state, and present it to the user.

Note that a service that sends this notification must also send a Ready notification when it completed reloading its configuration. Reloads are propagated in the same way as they are when initiated by the user.

Stopping

Indicate the service is beginning its shutdown.

This is useful to allow the service manager to track the service’s internal state, and present it to the user.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.