[−][src]Struct fstab::FsTab
Implementations
impl FsTab
[src]
pub fn new(fstab: &Path) -> Self
[src]
pub fn get_entries(&self) -> Result<Vec<FsEntry>, Error>
[src]
Takes the location to the fstab and parses it. On linux variants this is usually /etc/fstab. On SVR4 systems store block devices and mount point information in /etc/vfstab file. AIX stores block device and mount points information in /etc/filesystems file.
pub fn add_entry(&self, entry: FsEntry) -> Result<bool, Error>
[src]
Add a new entry to the fstab. If the fstab previously did not contain this entry then true is returned. Otherwise it will return false indicating it has been updated
pub fn add_entries(&self, entries: Vec<FsEntry>) -> Result<(), Error>
[src]
Bulk add a new entries to the fstab.
pub fn remove_entry(&self, spec: &str) -> Result<bool, Error>
[src]
Remove the fstab entry that corresponds to the spec given. IE: first fields match Returns true if the value was present in the fstab.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FsTab
impl Send for FsTab
impl Sync for FsTab
impl Unpin for FsTab
impl UnwindSafe for FsTab
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
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>,