pub struct EntryMeta {
pub kind: EntryKind,
pub uid: u32,
pub gid: u32,
pub mode: u32,
pub xattrs: Xattrs,
pub symlink_target: Option<String>,
}Expand description
The metadata of a tree entry, as the entry filter sees and changes it.
The walk fills it from the metadata read of the entry:
- On Unix,
uid,gid, andmodecome from the read, which does not follow a symlink. The mode of a symlink is the one exception. - On other platforms,
uidandgidare 0.modeis0o100644for a regular file and0o40755for a directory. - A symlink has the mode
0o120777on every platform. On Unix its owner comes from the read. xattrsis empty on every platform.
Fields§
§kind: EntryKindThe kind of the entry, which the filter must not change.
uid: u32The owner uid.
gid: u32The owner gid.
mode: u32The full st_mode, with the file-type bits.
The filter can change the bits 0o7777: the permission bits, the
set-id bits, and the sticky bit. It must not change the file-type bits
(0o170000) or set a bit outside 0o177777.
xattrs: XattrsThe extended attributes.
symlink_target: Option<String>The target of a symlink, present for a symlink alone.
The filter can give a symlink another target, the empty one included.
It must not remove the target or give a target to an entry of another
kind. On Windows, the walk refuses a target that holds \ or starts
with a drive prefix, because that target does not resolve on Linux.
Trait Implementations§
impl Eq for EntryMeta
impl StructuralPartialEq for EntryMeta
Auto Trait Implementations§
impl Freeze for EntryMeta
impl RefUnwindSafe for EntryMeta
impl Send for EntryMeta
impl Sync for EntryMeta
impl Unpin for EntryMeta
impl UnsafeUnpin for EntryMeta
impl UnwindSafe for EntryMeta
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
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
key and return true if they are equal.