pub struct PathError { /* private fields */ }Expand description
A synchronous failure while preparing a caller’s path.
Preparation happens where the caller is, so this is reported at construction rather than from the thread that would later have opened the path.
Implementations§
Source§impl PathError
impl PathError
Sourcepub fn failure(&self) -> PathFailure
pub fn failure(&self) -> PathFailure
What about the path was rejected.
Sourcepub fn raw_os_error(&self) -> Option<i32>
pub fn raw_os_error(&self) -> Option<i32>
The raw Win32 code behind the failure, when Windows produced one.
Only PathFailure::PathResolution arises from a Win32 call; the other
failures are decided here before any call is made.
Trait Implementations§
Source§impl Error for PathError
impl Error for PathError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for PathError
impl !UnwindSafe for PathError
impl Freeze for PathError
impl Send for PathError
impl Sync for PathError
impl Unpin for PathError
impl UnsafeUnpin for PathError
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