pub struct Identity(_);
Expand description

The identity for running a transient service on the system service manager.

Implementations

Run the transient service as the the UNIX user x and group y for UserGroup(x, y).

You need to be the root user to start a transient service with this. Read User= and Group= in systemd.exec(5) for details.

Run the transient service as a UNIX user and group pair dynamically allocated.

This is unavailable if the feature systemd_231 is disabled.

You need to be the root user to start a transient service with this. Read DynamicUser= in systemd.exec(5) for details.

Shorthand for Self::user_group(u, u).

Shorthand for Self::user("root").

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more