pub struct StreamedFile {
pub header: FixedHeader,
pub head: Vec<u8>,
pub len: u64,
}Expand description
流式加密的结果。
Fields§
§header: FixedHeader解析好的固定头。
head: Vec<u8>完整头部字节(含 MAC)。调用方据此做写盘后的自检(例如按密码重新打开), 不必再从磁盘读回。
len: u64写出的总字节数(头部 + 载荷)。
Trait Implementations§
Source§impl Clone for StreamedFile
impl Clone for StreamedFile
Auto Trait Implementations§
impl Forget for StreamedFile
impl Freeze for StreamedFile
impl RefUnwindSafe for StreamedFile
impl Send for StreamedFile
impl Sync for StreamedFile
impl Unpin for StreamedFile
impl UnsafeUnpin for StreamedFile
impl UnwindSafe for StreamedFile
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