pub struct RotateOutcome {
pub bytes: Vec<u8>,
pub opened_slot: u16,
pub slot_used: usize,
pub plaintext_size: u64,
}Expand description
轮换的结果。
Fields§
§bytes: Vec<u8>重新加密后的完整文件字节。
opened_slot: u16解开原文件时命中的 slot 下标。
slot_used: usize轮换后占用的 slot 数量。
plaintext_size: u64明文字节数,供调用方展示「重写了多少数据」。
Trait Implementations§
Auto Trait Implementations§
impl Forget for RotateOutcome
impl Freeze for RotateOutcome
impl RefUnwindSafe for RotateOutcome
impl Send for RotateOutcome
impl Sync for RotateOutcome
impl Unpin for RotateOutcome
impl UnsafeUnpin for RotateOutcome
impl UnwindSafe for RotateOutcome
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