pub struct MountPoint { /* private fields */ }Expand description
Information about a mount point (device, path, and whether it’s ejectable).
Returned as part of PathLocation and by list / list_with.
Implementations§
Source§impl MountPoint
impl MountPoint
Sourcepub fn mount_point(&self) -> &Path
pub fn mount_point(&self) -> &Path
Returns the mount point path (e.g. /, /home, C:\).
Sourcepub fn is_ejectable(&self) -> bool
pub fn is_ejectable(&self) -> bool
Returns true if the volume is ejectable or removable.
Trait Implementations§
Source§impl Clone for MountPoint
impl Clone for MountPoint
Source§fn clone(&self) -> MountPoint
fn clone(&self) -> MountPoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MountPoint
impl Debug for MountPoint
Source§impl PartialEq for MountPoint
impl PartialEq for MountPoint
impl Eq for MountPoint
impl StructuralPartialEq for MountPoint
Auto Trait Implementations§
impl !Freeze for MountPoint
impl RefUnwindSafe for MountPoint
impl Send for MountPoint
impl Sync for MountPoint
impl Unpin for MountPoint
impl UnsafeUnpin for MountPoint
impl UnwindSafe for MountPoint
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