#[non_exhaustive]pub enum ServiceExitType {
Main,
Cgroup,
}Expand description
Non-exhaustive: new systemd releases add values.
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.
Implementations§
Trait Implementations§
Source§impl Clone for ServiceExitType
impl Clone for ServiceExitType
impl Copy for ServiceExitType
Source§impl Debug for ServiceExitType
impl Debug for ServiceExitType
impl Eq for ServiceExitType
Source§impl From<ServiceExitType> for Variant<'_>
impl From<ServiceExitType> for Variant<'_>
Source§fn from(v: ServiceExitType) -> Self
fn from(v: ServiceExitType) -> Self
Converts to this type from the input type.
Source§impl FromStr for ServiceExitType
impl FromStr for ServiceExitType
Source§impl Hash for ServiceExitType
impl Hash for ServiceExitType
Source§impl PartialEq for ServiceExitType
impl PartialEq for ServiceExitType
impl StructuralPartialEq for ServiceExitType
Source§impl TryFrom<Variant<'_>> for ServiceExitType
impl TryFrom<Variant<'_>> for ServiceExitType
Auto Trait Implementations§
impl Freeze for ServiceExitType
impl RefUnwindSafe for ServiceExitType
impl Send for ServiceExitType
impl Sync for ServiceExitType
impl Unpin for ServiceExitType
impl UnsafeUnpin for ServiceExitType
impl UnwindSafe for ServiceExitType
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