pub struct Mount(_);
Expand description

The description of a mount.

Implementations

Create a new bind mount.

Read BindPaths and BindReadOnlyPaths in systemd.exec(5) for details.

This setting is not available if the feature systemd_233 is disabled.

Create a tmpfs mount.

Read TemporaryFileSystem in systemd.exec(5) for details.

This setting is not available if the feature systemd_238 is disabled.

Create a normal mount.

Read MountImages in systemd.exec(5) for details.

This setting is not available if the feature systemd_247 is disabled.

Make the Mount writable.

Make the Mount recursive. It only makes a difference for a bind mount.

Append a mount option. If the option contains a comma (,), or it is ro, rw, or empty, or it’s applied for a bind mount, None will be returned. But the option will not be validated further.

For rw, use Self::writable instead.

Ignore the mount if the source does not exist. This does not make any difference for tmpfs mounts.

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