[−][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]
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]
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 Display for Remount[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,