pub struct PathIoError {
pub operation: PathIoOperation,
pub path: Option<PathBuf>,
pub source: Error,
}Expand description
Structured path I/O failure shared by worktree and git-directory operations.
Fields§
§operation: PathIoOperationWhat the operation was doing when I/O failed.
path: Option<PathBuf>Path that failed, when known.
source: ErrorUnderlying OS error.
Implementations§
Source§impl PathIoError
impl PathIoError
Sourcepub fn worktree(
path: impl Into<String>,
operation: WorktreePathOperation,
source: Error,
) -> Self
pub fn worktree( path: impl Into<String>, operation: WorktreePathOperation, source: Error, ) -> Self
Build a worktree-path failure (path is the index- or worktree-relative display path).
Trait Implementations§
Source§impl Debug for PathIoError
impl Debug for PathIoError
Source§impl Display for PathIoError
impl Display for PathIoError
Source§impl Error for PathIoError
impl Error for PathIoError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PathIoError> for Error
impl From<PathIoError> for Error
Source§fn from(value: PathIoError) -> Self
fn from(value: PathIoError) -> Self
Converts to this type from the input type.
Source§impl From<PathIoError> for IndexError
impl From<PathIoError> for IndexError
Source§fn from(source: PathIoError) -> Self
fn from(source: PathIoError) -> Self
Converts to this type from the input type.
Source§impl From<PathIoError> for RepositoryError
impl From<PathIoError> for RepositoryError
Source§fn from(value: PathIoError) -> Self
fn from(value: PathIoError) -> Self
Converts to this type from the input type.
Source§impl From<PathIoError> for WorktreeError
impl From<PathIoError> for WorktreeError
Source§fn from(source: PathIoError) -> Self
fn from(source: PathIoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PathIoError
impl !UnwindSafe for PathIoError
impl Forget for PathIoError
impl Freeze for PathIoError
impl Send for PathIoError
impl Sync for PathIoError
impl Unpin for PathIoError
impl UnsafeUnpin for PathIoError
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