#[non_exhaustive]pub enum Id {
Caller {
new_only: bool,
},
Numeric {
id: uid_t,
new_only: bool,
},
Name {
name: CompactString,
new_only: bool,
},
}
Expand description
UID or GID
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.
Caller
User or group will be set to caller of systemd-tmpfiles
Numeric
UID or GID will be set
Name
User or group name will be set
Implementations§
Trait Implementations§
impl Eq for Id
impl StructuralPartialEq for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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