#[non_exhaustive]pub enum FullPathError {
Win32(Win32Error),
Unstable {
attempts: usize,
},
}Expand description
Why a full path could not be resolved.
This mirrors crate::final_path::FinalPathError deliberately: the two
entries share a retry shape, so they share a failure vocabulary. An earlier
revision returned a synthesized ERROR_INSUFFICIENT_BUFFER for the unstable
case, which left a caller unable to tell that apart from the same code
arriving from Windows, and made this entry the one place in the crate that
invented a code Win32 had not produced.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Win32(Win32Error)
Windows refused the call, with the raw code unaltered.
Unstable
The required size kept changing, so the retry was abandoned.
A path does not normally grow between two calls a microsecond apart, so this means something pathological rather than a transient. It is reported rather than looped on, because spinning here would hang the worker that a consumer moved this call onto in the first place.
Trait Implementations§
Source§impl Debug for FullPathError
impl Debug for FullPathError
Source§impl Display for FullPathError
impl Display for FullPathError
Source§impl Error for FullPathError
impl Error for FullPathError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()