pub struct GenerateReport {
pub image_dimensions: (u32, u32),
pub payload_bytes: usize,
pub capacity_bytes: usize,
}Expand description
What one generation produced.
None of these figures travels with the container, and none of them is a secret the caller does not already hold: the container is always the same size whatever it carries, which is the point of filling it.
Fields§
§image_dimensions: (u32, u32)Dimensions of the container as (width, height), in pixels.
payload_bytes: usizeCompressed payload bytes the container was built around.
The message after Zstandard, not its length: the plaintext length is not something the container carries, and reporting it here would suggest otherwise.
capacity_bytes: usizeCompressed payload bytes a container of this size admits.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenerateReport
impl RefUnwindSafe for GenerateReport
impl Send for GenerateReport
impl Sync for GenerateReport
impl Unpin for GenerateReport
impl UnsafeUnpin for GenerateReport
impl UnwindSafe for GenerateReport
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> 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