pub struct Tmpfs { /* private fields */ }Expand description
A tmpfs mount definition
By default tmpfs is mounted with nosuid,nodev
Implementations§
Source§impl Tmpfs
impl Tmpfs
Sourcepub fn new<P: AsRef<Path>>(path: P) -> Tmpfs
pub fn new<P: AsRef<Path>>(path: P) -> Tmpfs
New tmpfs mount point with target path and default settngs
Sourcepub fn size_bytes(self, size: usize) -> Tmpfs
pub fn size_bytes(self, size: usize) -> Tmpfs
Set size in bytes
Sourcepub fn size_blocks(self, size: usize) -> Tmpfs
pub fn size_blocks(self, size: usize) -> Tmpfs
Set size in blocks of PAGE_CACHE_SIZE
Sourcepub fn bare_mount(self) -> Result<(), OSError>
pub fn bare_mount(self) -> Result<(), OSError>
Mount the tmpfs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tmpfs
impl RefUnwindSafe for Tmpfs
impl Send for Tmpfs
impl Sync for Tmpfs
impl Unpin for Tmpfs
impl UnwindSafe for Tmpfs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more