pub struct FinalPathFlags(/* private fields */);Expand description
Which form of the final path to report.
A newtype over the flags rather than an enum, because the value combines a volume-name choice with a path-form choice and Windows may define more.
§Example
use windows_namespace_request_sys::final_path::FinalPathFlags;
// What the watcher uses, and the default here.
let default = FinalPathFlags::DEFAULT;
assert_eq!(default, FinalPathFlags::VOLUME_NAME_DOS | FinalPathFlags::NAME_NORMALIZED);
// VOLUME_NAME_DOS and FILE_NAME_NORMALIZED are both zero: they are the
// defaults Windows applies when no opposing bit is set, not flags that can
// be observed as present.
assert_eq!(default.bits(), 0);
// The alternatives are the ones that carry bits.
assert_ne!(FinalPathFlags::VOLUME_NAME_GUID.bits(), 0);Implementations§
Source§impl FinalPathFlags
impl FinalPathFlags
Sourcepub const VOLUME_NAME_DOS: Self
pub const VOLUME_NAME_DOS: Self
A drive letter, if the volume has one. Windows’ default.
Sourcepub const VOLUME_NAME_GUID: Self
pub const VOLUME_NAME_GUID: Self
A volume GUID path, which has no dependence on drive-letter mappings.
Sourcepub const VOLUME_NAME_NT: Self
pub const VOLUME_NAME_NT: Self
The NT device path.
Sourcepub const VOLUME_NAME_NONE: Self
pub const VOLUME_NAME_NONE: Self
No volume component at all.
Sourcepub const NAME_NORMALIZED: Self
pub const NAME_NORMALIZED: Self
The normalised form of the path. Windows’ default.
Sourcepub const NAME_OPENED: Self
pub const NAME_OPENED: Self
The path as it was opened, which may not be normalised.
Trait Implementations§
Source§impl BitOr for FinalPathFlags
impl BitOr for FinalPathFlags
Source§impl Clone for FinalPathFlags
impl Clone for FinalPathFlags
Source§fn clone(&self) -> FinalPathFlags
fn clone(&self) -> FinalPathFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FinalPathFlags
Source§impl Debug for FinalPathFlags
impl Debug for FinalPathFlags
Source§impl Default for FinalPathFlags
impl Default for FinalPathFlags
Source§fn default() -> FinalPathFlags
fn default() -> FinalPathFlags
Returns the “default value” for a type. Read more
impl Eq for FinalPathFlags
Source§impl Hash for FinalPathFlags
impl Hash for FinalPathFlags
Source§impl PartialEq for FinalPathFlags
impl PartialEq for FinalPathFlags
impl StructuralPartialEq for FinalPathFlags
Auto Trait Implementations§
impl Freeze for FinalPathFlags
impl RefUnwindSafe for FinalPathFlags
impl Send for FinalPathFlags
impl Sync for FinalPathFlags
impl Unpin for FinalPathFlags
impl UnsafeUnpin for FinalPathFlags
impl UnwindSafe for FinalPathFlags
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