pub struct ChunkLayout {
pub chunks: u32,
pub chunk_size: u64,
pub plaintext_len: u64,
}Expand description
The chunk layout of a sealed file.
Fields§
§chunks: u32Chunks (N).
chunk_size: u64Plaintext bytes per full chunk (C).
plaintext_len: u64Plaintext bytes in all.
Implementations§
Source§impl ChunkLayout
impl ChunkLayout
Trait Implementations§
Source§impl Clone for ChunkLayout
impl Clone for ChunkLayout
impl Copy for ChunkLayout
Source§impl Debug for ChunkLayout
impl Debug for ChunkLayout
impl Eq for ChunkLayout
Source§impl PartialEq for ChunkLayout
impl PartialEq for ChunkLayout
impl StructuralPartialEq for ChunkLayout
Auto Trait Implementations§
impl Forget for ChunkLayout
impl Freeze for ChunkLayout
impl Move for ChunkLayout
impl RefUnwindSafe for ChunkLayout
impl Send for ChunkLayout
impl Sync for ChunkLayout
impl Unpin for ChunkLayout
impl UnsafeUnpin for ChunkLayout
impl UnwindSafe for ChunkLayout
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more