pub struct PackLimits {
pub max_archive_bytes: u64,
pub max_total_bytes: u64,
pub max_entry_bytes: u64,
pub max_entries: usize,
}Expand description
What a pack may hold and what an unpack accepts. The same limits guard both directions, so a pack this engine writes is one it reads back.
Fields§
§max_archive_bytes: u64Size of the archive file itself.
max_total_bytes: u64Sum of the declared sizes of every entry.
max_entry_bytes: u64Declared size of a single entry.
max_entries: usizeTrait Implementations§
Source§impl Clone for PackLimits
impl Clone for PackLimits
Source§impl Debug for PackLimits
impl Debug for PackLimits
Source§impl Default for PackLimits
impl Default for PackLimits
impl Eq for PackLimits
Source§impl PartialEq for PackLimits
impl PartialEq for PackLimits
impl StructuralPartialEq for PackLimits
Auto Trait Implementations§
impl Freeze for PackLimits
impl RefUnwindSafe for PackLimits
impl Send for PackLimits
impl Sync for PackLimits
impl Unpin for PackLimits
impl UnsafeUnpin for PackLimits
impl UnwindSafe for PackLimits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.