pub struct EntryMeta {
pub mtime_ns: Option<i128>,
pub btime_ns: Option<i128>,
pub mode: Option<u32>,
pub uid: Option<u32>,
pub gid: Option<u32>,
pub xattrs: BTreeMap<String, Vec<u8>>,
}Expand description
跨平台元数据。不支持的项在还原时明确报告而非静默丢弃(决策 N3)。
Fields§
§mtime_ns: Option<i128>修改时间,Unix 纳秒。
btime_ns: Option<i128>创建时间,Unix 纳秒。Linux 上无法设置,还原时跳过并报告。
mode: Option<u32>POSIX 权限位。Windows 无对应概念,还原时跳过并报告。
uid: Option<u32>属主 uid / gid。跨机器无意义,默认不还原,仅记录。
gid: Option<u32>见 Self::uid。
xattrs: BTreeMap<String, Vec<u8>>扩展属性。Windows 是 ADS,语义不同,跨平台时报告。
Implementations§
Trait Implementations§
impl Eq for EntryMeta
impl StructuralPartialEq for EntryMeta
Auto Trait Implementations§
impl Forget for EntryMeta
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
Mutably borrows from an owned value. Read more