#[non_exhaustive]pub enum RequestFailure {
EmptyPath,
InteriorNul,
PathTooLong,
NotFullyQualified,
PathResolution,
BufferCapacityUnrepresentable,
}Expand description
Why a request could not be built.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyPath
The path had no code units. An empty path names no directory.
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 enumerate 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.
BufferCapacityUnrepresentable
The requested native buffer capacity, after clamping and alignment,
cannot be passed to Win32 as a u32.
Trait Implementations§
Source§impl Clone for RequestFailure
impl Clone for RequestFailure
Source§fn clone(&self) -> RequestFailure
fn clone(&self) -> RequestFailure
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more