#[non_exhaustive]pub enum PathFailure {
EmptyPath,
InteriorNul,
PathTooLong,
NotFullyQualified,
PathResolution,
}Expand description
Why a caller’s path could not be prepared.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyPath
The path had no code units. An empty path names nothing.
InteriorNul
The path contained an interior NUL. Win32 would stop at it and open a different, shorter path than the caller named.
PathTooLong
An ordinary path, or the fully qualified form it resolved to, did not
fit the ordinary MAX_PATH limit including its terminator.
This limit is deliberate rather than incidental: it keeps behaviour
independent of the host executable’s longPathAware manifest. Supply a
fully qualified \?\ path to name a longer one.
NotFullyQualified
A \?\ path was not fully qualified, so Win32 would not interpret it
as the verbatim absolute path that prefix promises.
PathResolution
Windows could not resolve an ordinary path to its fully qualified form.
Implementations§
Source§impl PathFailure
impl PathFailure
Sourcepub fn description(self) -> &'static str
pub fn description(self) -> &'static str
A short description of the failure, without any raw code.
Trait Implementations§
Source§impl Clone for PathFailure
impl Clone for PathFailure
Source§fn clone(&self) -> PathFailure
fn clone(&self) -> PathFailure
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more