pub struct ByteRangeCoverage {
pub ranges: Vec<(usize, usize)>,
pub covers_whole_document: bool,
pub bytes_after_signature: usize,
}Expand description
How a signature’s /ByteRange covers the file.
Fields§
§ranges: Vec<(usize, usize)>The (offset, length) spans of the file that are signed, in order.
covers_whole_document: boolTrue when the ranges start at byte 0 and the last range ends exactly at
end-of-file (the single gap being the /Contents placeholder) — i.e. the
signature covers the whole document.
bytes_after_signature: usizeBytes present after the last signed span. Non-zero means the file was extended after this signature was applied — a later incremental update (possibly another signature, possibly a modification the signature does not cover).
Trait Implementations§
Source§impl Clone for ByteRangeCoverage
impl Clone for ByteRangeCoverage
Source§fn clone(&self) -> ByteRangeCoverage
fn clone(&self) -> ByteRangeCoverage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ByteRangeCoverage
impl RefUnwindSafe for ByteRangeCoverage
impl Send for ByteRangeCoverage
impl Sync for ByteRangeCoverage
impl Unpin for ByteRangeCoverage
impl UnsafeUnpin for ByteRangeCoverage
impl UnwindSafe for ByteRangeCoverage
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