#[non_exhaustive]pub enum PathCaptureError {
InteriorNul,
CurrentDirectory(Win32Error),
CurrentDirectoryUnstable {
attempts: usize,
},
}Expand description
Why a path could not be captured for a request.
The failures are the two a path can have at construction: it cannot be carried to Win32 as it
is, or the current directory it is to be fixed to could not be read. The second mirrors
crate::full_path::FullPathError, which shares the retry shape and so the vocabulary.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InteriorNul
The path contains a NUL before its end. Win32 reads a path up to its first NUL, so it would act on a shorter path than the one named.
CurrentDirectory(Win32Error)
GetCurrentDirectoryW was refused, with the raw code unaltered.
CurrentDirectoryUnstable
The size of the current directory kept changing, so the retry was abandoned.
Trait Implementations§
Source§impl Debug for PathCaptureError
impl Debug for PathCaptureError
Source§impl Display for PathCaptureError
impl Display for PathCaptureError
Source§impl Error for PathCaptureError
impl Error for PathCaptureError
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 Freeze for PathCaptureError
impl RefUnwindSafe for PathCaptureError
impl Send for PathCaptureError
impl Sync for PathCaptureError
impl Unpin for PathCaptureError
impl UnsafeUnpin for PathCaptureError
impl UnwindSafe for PathCaptureError
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