[][src]Enum sd_notify::NotifyState

pub enum NotifyState {
    Ready,
    Reloading,
    Stopping,
    Status(String),
    Errno(i32),
    BusError(String),
    MainPid(i32),
    Watchdog,
    WatchdogTrigger,
    WatchdogUsec(u32),
    ExtendTimeoutUsec(u32),
    Custom(String),
}

Daemon notification for the service manager.

Variants

Ready

Service startup is finished.

Reloading

Service is reloading its configuration.

Stopping

Service is stopping.

Status(String)

Free-form status message for the service manager.

Errno(i32)

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

BusError(String)

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

MainPid(i32)

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(String)

Custom state.

Trait Implementations

impl Clone for NotifyState[src]

impl Display for NotifyState[src]

impl Debug for NotifyState[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

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.

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

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

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