pub struct SysWithPathsInErrors<T>(pub T);Expand description
A wrapper that adds error context to sys_traits operations.
Use PathsInErrorsExt::with_paths_in_errors to create an instance.
Tuple Fields§
§0: TImplementations§
Source§impl<T> SysWithPathsInErrors<T>
impl<T> SysWithPathsInErrors<T>
Source§impl<T: BaseFsCanonicalize> SysWithPathsInErrors<&T>
impl<T: BaseFsCanonicalize> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsChown> SysWithPathsInErrors<&T>
impl<T: BaseFsChown> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsSymlinkChown> SysWithPathsInErrors<&T>
impl<T: BaseFsSymlinkChown> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsCloneFile> SysWithPathsInErrors<&T>
impl<T: BaseFsCloneFile> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsCopy> SysWithPathsInErrors<&T>
impl<T: BaseFsCopy> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsCreateDir> SysWithPathsInErrors<&T>
impl<T: BaseFsCreateDir> SysWithPathsInErrors<&T>
pub fn fs_create_dir( &self, path: impl AsRef<Path>, options: &CreateDirOptions, ) -> Result<()>
pub fn fs_create_dir_all(&self, path: impl AsRef<Path>) -> Result<()>
Source§impl<T: BaseFsHardLink> SysWithPathsInErrors<&T>
impl<T: BaseFsHardLink> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsMetadata> SysWithPathsInErrors<&T>
impl<T: BaseFsMetadata> SysWithPathsInErrors<&T>
pub fn fs_metadata(&self, path: impl AsRef<Path>) -> Result<T::Metadata>
pub fn fs_symlink_metadata(&self, path: impl AsRef<Path>) -> Result<T::Metadata>
pub fn fs_is_file(&self, path: impl AsRef<Path>) -> Result<bool>
pub fn fs_is_dir(&self, path: impl AsRef<Path>) -> Result<bool>
pub fn fs_is_symlink(&self, path: impl AsRef<Path>) -> Result<bool>
Source§impl<T: BaseFsOpen> SysWithPathsInErrors<&T>
impl<T: BaseFsOpen> SysWithPathsInErrors<&T>
pub fn fs_open( &self, path: impl AsRef<Path>, options: &OpenOptions, ) -> Result<FsFileWithPathsInErrors<T::File>>
Source§impl<T: BaseFsRead> SysWithPathsInErrors<&T>
impl<T: BaseFsRead> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsReadDir> SysWithPathsInErrors<&T>
impl<T: BaseFsReadDir> SysWithPathsInErrors<&T>
pub fn fs_read_dir( &self, path: impl AsRef<Path>, ) -> Result<Box<dyn Iterator<Item = Result<T::ReadDirEntry>>>>
Source§impl<T: BaseFsReadLink> SysWithPathsInErrors<&T>
impl<T: BaseFsReadLink> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsRemoveDir> SysWithPathsInErrors<&T>
impl<T: BaseFsRemoveDir> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsRemoveDirAll> SysWithPathsInErrors<&T>
impl<T: BaseFsRemoveDirAll> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsRemoveFile> SysWithPathsInErrors<&T>
impl<T: BaseFsRemoveFile> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsRename> SysWithPathsInErrors<&T>
impl<T: BaseFsRename> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsSetFileTimes> SysWithPathsInErrors<&T>
impl<T: BaseFsSetFileTimes> SysWithPathsInErrors<&T>
pub fn fs_set_file_times( &self, path: impl AsRef<Path>, atime: SystemTime, mtime: SystemTime, ) -> Result<()>
Source§impl<T: BaseFsSetSymlinkFileTimes> SysWithPathsInErrors<&T>
impl<T: BaseFsSetSymlinkFileTimes> SysWithPathsInErrors<&T>
pub fn fs_set_symlink_file_times( &self, path: impl AsRef<Path>, atime: SystemTime, mtime: SystemTime, ) -> Result<()>
Source§impl<T: BaseFsSymlinkDir> SysWithPathsInErrors<&T>
impl<T: BaseFsSymlinkDir> SysWithPathsInErrors<&T>
Source§impl<T: BaseFsSymlinkFile> SysWithPathsInErrors<&T>
impl<T: BaseFsSymlinkFile> SysWithPathsInErrors<&T>
Trait Implementations§
Source§impl<T: Clone> Clone for SysWithPathsInErrors<T>
impl<T: Clone> Clone for SysWithPathsInErrors<T>
Source§fn clone(&self) -> SysWithPathsInErrors<T>
fn clone(&self) -> SysWithPathsInErrors<T>
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<T: Debug> Debug for SysWithPathsInErrors<T>
impl<T: Debug> Debug for SysWithPathsInErrors<T>
impl<T: Copy> Copy for SysWithPathsInErrors<T>
Auto Trait Implementations§
impl<T> Freeze for SysWithPathsInErrors<T>where
T: Freeze,
impl<T> RefUnwindSafe for SysWithPathsInErrors<T>where
T: RefUnwindSafe,
impl<T> Send for SysWithPathsInErrors<T>where
T: Send,
impl<T> Sync for SysWithPathsInErrors<T>where
T: Sync,
impl<T> Unpin for SysWithPathsInErrors<T>where
T: Unpin,
impl<T> UnwindSafe for SysWithPathsInErrors<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> PathsInErrorsExt for T
impl<T> PathsInErrorsExt for T
Source§fn with_paths_in_errors(&self) -> SysWithPathsInErrors<&Self>
fn with_paths_in_errors(&self) -> SysWithPathsInErrors<&Self>
Wraps
self in a SysWithPathsInErrors that includes paths in error messages.