Enum heph_rt::systemd::ServiceMessage
source · [−]#[non_exhaustive]
pub enum ServiceMessage {
ChangeState {
state: State,
status: Option<String>,
},
ChangeStatus(String),
}Available on Linux only.
Expand description
Message to send to the service manager.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ChangeState
Fields
state: StateThe new state of the application.
Change the state of the application.
See Notify::change_state.
ChangeStatus(String)
Describe the service state.
Trait Implementations
sourceimpl Debug for ServiceMessage
impl Debug for ServiceMessage
sourceimpl From<Terminate> for ServiceMessage
impl From<Terminate> for ServiceMessage
sourcefn from(_: Terminate) -> ServiceMessage
fn from(_: Terminate) -> ServiceMessage
Converts to this type from the input type.
sourceimpl TryFrom<Signal> for ServiceMessage
impl TryFrom<Signal> for ServiceMessage
sourcefn try_from(signal: Signal) -> Result<Self, Self::Error>
fn try_from(signal: Signal) -> Result<Self, Self::Error>
Converts Signal::Interrupt, Signal::Terminate and
Signal::Quit, fails for all other signals (by returning Err(())).
Auto Trait Implementations
impl RefUnwindSafe for ServiceMessage
impl Send for ServiceMessage
impl Sync for ServiceMessage
impl Unpin for ServiceMessage
impl UnwindSafe for ServiceMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more