pub struct RemoteMounts { /* private fields */ }
Expand description
Encapsulates data on which directories have been remotely mounted.
Implementations§
Source§impl RemoteMounts
impl RemoteMounts
Sourcepub fn load_reader<R: Read>(r: R) -> Result<RemoteMounts>
pub fn load_reader<R: Read>(r: R) -> Result<RemoteMounts>
Loads the contents of an mtab file into a RemoteMounts
structure.
Sourcepub fn load() -> Result<RemoteMounts>
pub fn load() -> Result<RemoteMounts>
Loads the contents of /etc/mtab
into a RemoteMounts
structure.
Sourcepub fn into_current_dir(self) -> Result<Location>
pub fn into_current_dir(self) -> Result<Location>
Determines the location of the current directory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RemoteMounts
impl RefUnwindSafe for RemoteMounts
impl Send for RemoteMounts
impl Sync for RemoteMounts
impl Unpin for RemoteMounts
impl UnwindSafe for RemoteMounts
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