pub enum Notification {
Ready,
Reloading,
Stopping,
Status(String),
Errno(i32),
WatchdogOk,
WatchdogTrigger,
Custom(CustomVariable),
}
Expand description
Notification kinds to send to systemd
Variants§
Ready
Notify systemd that the service is ready
Reloading
Notify systemd that the service is reloading
Stopping
Notify systemd that the service is stopping
Status(String)
Notify systemd of the service status
Errno(i32)
Notify systemd of an error number
WatchdogOk
Notify systemd that the service is ok (heartbeat)
WatchdogTrigger
Notify systemd to trigger the watchdog
Custom(CustomVariable)
Send a custom notification
Trait Implementations§
Source§impl Clone for Notification
impl Clone for Notification
Source§fn clone(&self) -> Notification
fn clone(&self) -> Notification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Notification
impl Debug for Notification
Source§impl Display for Notification
impl Display for Notification
Source§impl From<Notification> for Message
impl From<Notification> for Message
Source§fn from(value: Notification) -> Self
fn from(value: Notification) -> Self
Converts to this type from the input type.
Source§impl FromIterator<Notification> for Message
impl FromIterator<Notification> for Message
Source§fn from_iter<I: IntoIterator<Item = Notification>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = Notification>>(iter: I) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl Send for Notification
impl Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more