pub struct RealFileSystem;Implementations§
Source§impl RealFileSystem
impl RealFileSystem
Sourcepub fn reclaimable_size<P>(path: P) -> Result<u64>
pub fn reclaimable_size<P>(path: P) -> Result<u64>
The number of bytes actually freed by deleting path.
Symbolic links are never followed. Deleting a link removes only the link, so descending into its target would attribute another tree’s bytes to this candidate and promise space that the clean cannot deliver. Not following them also makes link cycles harmless.
On Unix the figure is allocated blocks rather than apparent length, so sparse files are not overstated, and each inode is counted once so hard links are not double-counted.
Trait Implementations§
Source§impl Clone for RealFileSystem
impl Clone for RealFileSystem
Source§fn clone(&self) -> RealFileSystem
fn clone(&self) -> RealFileSystem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RealFileSystem
Source§impl Debug for RealFileSystem
impl Debug for RealFileSystem
Source§impl Default for RealFileSystem
impl Default for RealFileSystem
Source§fn default() -> RealFileSystem
fn default() -> RealFileSystem
Returns the “default value” for a type. Read more
impl Eq for RealFileSystem
Source§impl FileSystem for RealFileSystem
impl FileSystem for RealFileSystem
fn directory_from_current<P: AsRef<Path>>( &self, path: Option<P>, ) -> Result<FileInfo>
fn list_files(&self, file: &FileInfo) -> Result<DirListing>
fn file_size(&self, file: &FileInfo) -> Result<u64>
Source§fn device_id(&self, file: &FileInfo) -> Option<u64>
fn device_id(&self, file: &FileInfo) -> Option<u64>
The filesystem this entry lives on, where that is knowable. Read more
fn current_directory(&self) -> Result<FileInfo>
Source§impl FileSystemClean for RealFileSystem
impl FileSystemClean for RealFileSystem
Source§impl Hash for RealFileSystem
impl Hash for RealFileSystem
Source§impl PartialEq for RealFileSystem
impl PartialEq for RealFileSystem
impl StructuralPartialEq for RealFileSystem
Auto Trait Implementations§
impl Freeze for RealFileSystem
impl RefUnwindSafe for RealFileSystem
impl Send for RealFileSystem
impl Sync for RealFileSystem
impl Unpin for RealFileSystem
impl UnsafeUnpin for RealFileSystem
impl UnwindSafe for RealFileSystem
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