pub enum FileIdentityMode {
Omit,
BestEffort,
Required,
}Expand description
How much work a request is willing to do for file identity.
The 128-bit file ID is inline in every record and always present. Only the volume serial that qualifies it costs an extra query, and that query runs once against the directory handle – no mode ever opens an individual entry.
Variants§
Omit
Do not query the volume serial. Entries carry unqualified identities.
The default, because a caller that never compares identities across volumes should not pay for the query.
BestEffort
Query the volume serial once, and carry on without it if that fails.
Entries then carry unqualified identities rather than failing the enumeration – the shape a caller wants when identity refines its work but does not gate it.
Required
Query the volume serial once, and fail the enumeration before its first entry if it cannot be obtained.
Use this when an unqualified identity would be silently wrong.
Implementations§
Source§impl FileIdentityMode
impl FileIdentityMode
Sourcepub const fn queries_volume(self) -> bool
pub const fn queries_volume(self) -> bool
Whether this mode performs the volume-serial query at all.
Trait Implementations§
Source§impl Clone for FileIdentityMode
impl Clone for FileIdentityMode
Source§fn clone(&self) -> FileIdentityMode
fn clone(&self) -> FileIdentityMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more