Struct libmount::Tmpfs [] [src]

pub struct Tmpfs {
    // some fields omitted
}

A tmpfs mount definition

By default tmpfs is mounted with nosuid,nodev

Methods

impl Tmpfs
[src]

fn new<P: AsRef<Path>>(path: P) -> Tmpfs

New tmpfs mount point with target path and default settngs

fn size_bytes(self, size: usize) -> Tmpfs

Set size in bytes

fn size_blocks(self, size: usize) -> Tmpfs

Set size in blocks of PAGE_CACHE_SIZE

fn nr_inodes(self, num: usize) -> Tmpfs

Maximum number of inodes

fn mode(self, mode: mode_t) -> Tmpfs

Set initial permissions of the root directory

fn uid(self, uid: uid_t) -> Tmpfs

Set initial owner of the root directory

fn gid(self, gid: gid_t) -> Tmpfs

Set initial group of the root directory

fn bare_mount(self) -> Result<()OSError>

Mount the tmpfs

fn mount(self) -> Result<()Error>

Mount the tmpfs and explain error immediately

Trait Implementations

impl Clone for Tmpfs
[src]

fn clone(&self) -> Tmpfs

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Tmpfs
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Tmpfs
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.