pub struct VerifyLimits {
pub maximum_decoded_bytes: u64,
pub maximum_pack_bytes: u64,
}Expand description
Bounds on the work opening and verifying a pack may do.
Fields§
§maximum_decoded_bytes: u64Most bytes of chunk records decoded, summed over every chunk. Verification fails once the chunks’ recorded sizes pass it, before the chunk that would pass it is decompressed.
maximum_pack_bytes: u64Longest pack file opened or hashed. Pack::open_with checks the
file’s length before SQLite opens it, verification checks the pages
again before its integrity check, and hashing fails once it has read
more, even from a file that has grown since it was opened.
Verification uses the lower of this and the limit the pack was
opened with.
Trait Implementations§
Source§impl Clone for VerifyLimits
impl Clone for VerifyLimits
impl Copy for VerifyLimits
Source§impl Debug for VerifyLimits
impl Debug for VerifyLimits
Source§impl Default for VerifyLimits
impl Default for VerifyLimits
impl Eq for VerifyLimits
Source§impl PartialEq for VerifyLimits
impl PartialEq for VerifyLimits
impl StructuralPartialEq for VerifyLimits
Auto Trait Implementations§
impl Freeze for VerifyLimits
impl RefUnwindSafe for VerifyLimits
impl Send for VerifyLimits
impl Sync for VerifyLimits
impl Unpin for VerifyLimits
impl UnsafeUnpin for VerifyLimits
impl UnwindSafe for VerifyLimits
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