pub enum NotifyState<'a> {
    Ready,
    Reloading,
    Stopping,
    Status(&'a str),
    Errno(u32),
    BusError(&'a str),
    MainPid(u32),
    Watchdog,
    WatchdogTrigger,
    WatchdogUsec(u32),
    ExtendTimeoutUsec(u32),
    Custom(&'a str),
}
Expand description

Daemon notification for the service manager.

Variants

Ready

Service startup is finished.

Reloading

Service is reloading its configuration.

Stopping

Service is stopping.

Status(&'a str)

Free-form status message for the service manager.

Errno(u32)

Service has failed with an errno-style error code, e.g. 2 for ENOENT.

BusError(&'a str)

Service has failed with a D-Bus-style error code, e.g. org.freedesktop.DBus.Error.TimedOut.

MainPid(u32)

Main process ID (PID) of the service, in case it wasn’t started directly by the service manager.

Watchdog

Tells the service manager to update the watchdog timestamp.

WatchdogTrigger

Tells the service manager to trigger a watchdog failure.

WatchdogUsec(u32)

Resets the configured watchdog value.

ExtendTimeoutUsec(u32)

Tells the service manager to extend the service timeout.

Custom(&'a str)

Custom state.

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

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

Converts the given value to a String. 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.