pub struct PathInfo { /* private fields */ }Expand description
Information about a filesystem path, including its type and mount status.
PathInfo represents both local and remote paths and provides methods
to inspect their characteristics in a platform-independent way.
Implementations§
Source§impl PathInfo
impl PathInfo
pub fn is_removable(&self) -> bool
pub fn is_fixed(&self) -> bool
pub fn is_remote(&self) -> bool
pub fn is_cdrom(&self) -> bool
pub fn is_ramdisk(&self) -> bool
pub fn is_virtual(&self) -> bool
pub fn is_symlink(&self) -> bool
pub fn is_status_mounted(&self) -> bool
pub fn is_status_disconnected(&self) -> bool
pub fn is_status_unknown(&self) -> bool
pub fn path(&self) -> &PathBuf
pub fn resolved_path(&self) -> &Option<PathBuf>
pub fn kind(&self) -> &PathType
pub fn status(&self) -> &PathStatus
pub fn remote_type(&self) -> Option<&RemoteType>
pub fn check_status(&mut self)
Trait Implementations§
impl StructuralPartialEq for PathInfo
Auto Trait Implementations§
impl Freeze for PathInfo
impl RefUnwindSafe for PathInfo
impl Send for PathInfo
impl Sync for PathInfo
impl Unpin for PathInfo
impl UnsafeUnpin for PathInfo
impl UnwindSafe for PathInfo
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