pub struct PackedFolder {
pub payload: Vec<u8>,
pub index: ContainerIndex,
pub root_name: String,
pub file_count: usize,
pub dir_count: usize,
pub link_count: usize,
pub skipped: Vec<SkippedEntry>,
}Expand description
打包结果。
Fields§
§payload: Vec<u8>拼接后的明文载荷。
index: ContainerIndex容器索引。
root_name: String根目录名,用作加密后的显示名。
file_count: usize文件数。
dir_count: usize目录数。
link_count: usize符号链接数。
单独计数而不是并进 file_count:还原时链接可能因平台限制建不出来
(Windows 无特权就必然失败),报告要能说清「10 个文件都好了,2 个
链接没能还原」。混在一起就只能说「12 项里有 2 项有问题」。
skipped: Vec<SkippedEntry>被跳过的条目,需如实展示给用户。
Trait Implementations§
Auto Trait Implementations§
impl Forget for PackedFolder
impl Freeze for PackedFolder
impl RefUnwindSafe for PackedFolder
impl Send for PackedFolder
impl Sync for PackedFolder
impl Unpin for PackedFolder
impl UnsafeUnpin for PackedFolder
impl UnwindSafe for PackedFolder
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