pub struct UnitId {
pub kind: UnitKind,
pub name: String,
pub scope: Scope,
}Expand description
Written <kind>:<name> for system scope and <kind>@<uid>[/<session>]:<name>
for user scope, e.g. service:sshd, service@1000:pipewire,
service:external:gym-upstream. Serialized in that form so it can key JSON maps.
Fields§
§kind: UnitKind§name: String§scope: ScopeImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitId
impl<'de> Deserialize<'de> for UnitId
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for UnitId
impl Ord for UnitId
Source§impl PartialOrd for UnitId
impl PartialOrd for UnitId
impl Eq for UnitId
impl StructuralPartialEq for UnitId
Auto Trait Implementations§
impl Freeze for UnitId
impl RefUnwindSafe for UnitId
impl Send for UnitId
impl Sync for UnitId
impl Unpin for UnitId
impl UnsafeUnpin for UnitId
impl UnwindSafe for UnitId
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