Struct libmount::BindMount [] [src]

pub struct BindMount { /* fields omitted */ }

A mount bind definition

By default bind mount is recursive (it's what you want most of the time).

Also recursive mounts can be used in user namespaces.

Methods

impl BindMount
[src]

Create a new, recursive bind mount

You can disable recursion with a non_recursive() method

Toggle recursion

If set to true makes bind-mount readonly

Few notes: 1. This makes additional mount call (Remount().readonly()) 2. If remount fails mount bind is left on the filesystem, no cleanup is done 3. If set to false is option is no-op (does not remount rw)

Execute a bind mount

Execute a bind mount and explain the error immediately

Trait Implementations

impl Debug for BindMount
[src]

Formats the value using the given formatter.

impl Clone for BindMount
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for BindMount
[src]

Formats the value using the given formatter. Read more