Struct libmount::Tmpfs [−][src]
pub struct Tmpfs { /* fields omitted */ }
A tmpfs mount definition
By default tmpfs is mounted with nosuid,nodev
Methods
impl Tmpfs
[src]
impl Tmpfs
pub fn new<P: AsRef<Path>>(path: P) -> Tmpfs
[src]
pub fn new<P: AsRef<Path>>(path: P) -> Tmpfs
New tmpfs mount point with target path and default settngs
pub fn size_bytes(self, size: usize) -> Tmpfs
[src]
pub fn size_bytes(self, size: usize) -> Tmpfs
Set size in bytes
pub fn size_blocks(self, size: usize) -> Tmpfs
[src]
pub fn size_blocks(self, size: usize) -> Tmpfs
Set size in blocks of PAGE_CACHE_SIZE
pub fn nr_inodes(self, num: usize) -> Tmpfs
[src]
pub fn nr_inodes(self, num: usize) -> Tmpfs
Maximum number of inodes
pub fn mode(self, mode: mode_t) -> Tmpfs
[src]
pub fn mode(self, mode: mode_t) -> Tmpfs
Set initial permissions of the root directory
pub fn uid(self, uid: uid_t) -> Tmpfs
[src]
pub fn uid(self, uid: uid_t) -> Tmpfs
Set initial owner of the root directory
pub fn gid(self, gid: gid_t) -> Tmpfs
[src]
pub fn gid(self, gid: gid_t) -> Tmpfs
Set initial group of the root directory
pub fn bare_mount(self) -> Result<(), OSError>
[src]
pub fn bare_mount(self) -> Result<(), OSError>
Mount the tmpfs
pub fn mount(self) -> Result<(), Error>
[src]
pub fn mount(self) -> Result<(), Error>
Mount the tmpfs and explain error immediately
Trait Implementations
impl Debug for Tmpfs
[src]
impl Debug for Tmpfs
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Tmpfs
[src]
impl Clone for Tmpfs
fn clone(&self) -> Tmpfs
[src]
fn clone(&self) -> Tmpfs
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Display for Tmpfs
[src]
impl Display for Tmpfs