[−][src]Struct libmount::Remount
A remount definition
Usually it is used to change mount flags for a mounted filesystem. Especially to make a readonly filesystem writable or vice versa.
Methods
impl Remount
[src]
impl Remount
pub fn new<A: AsRef<Path>>(path: A) -> Remount | [src] |
Create a new Remount operation
By default it doesn't modify any flags. So is basically useless, you should set some flags to make it effective.
pub fn bind(self, flag: bool) -> Remount | [src] |
Set bind flag Note: remount readonly doesn't work without MS_BIND flag inside unpriviledged user namespaces
pub fn readonly(self, flag: bool) -> Remount | [src] |
Set readonly flag
pub fn nodev(self, flag: bool) -> Remount | [src] |
Set nodev flag
pub fn noexec(self, flag: bool) -> Remount | [src] |
Set noexec flag
pub fn nosuid(self, flag: bool) -> Remount | [src] |
Set nosuid flag
pub fn noatime(self, flag: bool) -> Remount | [src] |
Set noatime flag
pub fn nodiratime(self, flag: bool) -> Remount | [src] |
Set nodiratime flag
pub fn relatime(self, flag: bool) -> Remount | [src] |
Set relatime flag
pub fn strictatime(self, flag: bool) -> Remount | [src] |
Set strictatime flag
pub fn dirsync(self, flag: bool) -> Remount | [src] |
Set dirsync flag
pub fn synchronous(self, flag: bool) -> Remount | [src] |
Set synchronous flag
pub fn mandlock(self, flag: bool) -> Remount | [src] |
Set mandlock flag
pub fn bare_remount(self) -> Result<(), OSError> | [src] |
Execute a remount
pub fn remount(self) -> Result<(), Error> | [src] |
Execute a remount and explain the error immediately
Trait Implementations
impl Clone for Remount
[src]
impl Clone for Remount
fn clone(&self) -> Remount | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for Remount
[src]
impl Debug for Remount
impl Display for Remount
[src]
impl Display for Remount
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |