#[non_exhaustive]pub struct ListedUnit {
pub name: String,
pub load_state: String,
pub active_state: String,
pub sub_state: String,
}Expand description
A unit as SystemdTransientManager::list_units reports it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§load_state: String§active_state: String§sub_state: StringImplementations§
Trait Implementations§
Source§impl Clone for ListedUnit
impl Clone for ListedUnit
Source§impl Debug for ListedUnit
impl Debug for ListedUnit
impl Eq for ListedUnit
Source§impl PartialEq for ListedUnit
impl PartialEq for ListedUnit
impl StructuralPartialEq for ListedUnit
Auto Trait Implementations§
impl Freeze for ListedUnit
impl RefUnwindSafe for ListedUnit
impl Send for ListedUnit
impl Sync for ListedUnit
impl Unpin for ListedUnit
impl UnsafeUnpin for ListedUnit
impl UnwindSafe for ListedUnit
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