pub struct ConfinedEntry {
pub name: String,
pub is_file: bool,
pub is_dir: bool,
pub mtime_unix_ms: Option<u64>,
pub byte_len: u64,
}Expand description
One entry discovered from a held directory handle. Discovery never re-resolves the directory by path; callers still perform the authoritative open relative to the same handle, so entry replacement races fail closed.
Fields§
§name: String§is_file: bool§is_dir: bool§mtime_unix_ms: Option<u64>Modification time (ms since epoch) from the handle-relative
fstatat(AT_SYMLINK_NOFOLLOW) — of the entry ITSELF, never a
symlink target.
byte_len: u64File length from the same handle-relative stat.
Trait Implementations§
Source§impl Clone for ConfinedEntry
impl Clone for ConfinedEntry
Source§fn clone(&self) -> ConfinedEntry
fn clone(&self) -> ConfinedEntry
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 moreSource§impl Debug for ConfinedEntry
impl Debug for ConfinedEntry
impl Eq for ConfinedEntry
Source§impl PartialEq for ConfinedEntry
impl PartialEq for ConfinedEntry
impl StructuralPartialEq for ConfinedEntry
Auto Trait Implementations§
impl Freeze for ConfinedEntry
impl RefUnwindSafe for ConfinedEntry
impl Send for ConfinedEntry
impl Sync for ConfinedEntry
impl Unpin for ConfinedEntry
impl UnsafeUnpin for ConfinedEntry
impl UnwindSafe for ConfinedEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.