pub struct Resume {
pub unit: u64,
pub written: u64,
pub bit: u64,
pub crc: u32,
pub stream: Option<Box<StreamPoint>>,
}Expand description
Where extraction of a large file can pick up again after a crash. Its
output up to written is flushed to disk, and the archive bytes before
the one holding bit may already be freed, so this is the only way back.
Fields§
§unit: u64The unit, by the offset it starts at.
written: u64Bytes of output in <name>.hatchzip-part, flushed. Anything the file
holds past this was written after the point and is thrown away.
bit: u64Where decoding restarts, in bits from the start of the archive. Deflate and bzip2 blocks can stop between two bytes.
crc: u32CRC-32 of the first written bytes of output. Unused for a
compressed tar, whose checksums are per gzip member or bzip2 stream, in stream.
stream: Option<Box<StreamPoint>>For a compressed tar, where one stream holds every entry: the
decoder’s and the tar parser’s state at bit. written is then how
much of the entry being extracted is in its part file, if the point
lies inside a file. Older builds don’t know the format and refuse the
journal before reading this.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Resume
impl<'de> Deserialize<'de> for Resume
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Resume
impl StructuralPartialEq for Resume
Auto Trait Implementations§
impl Forget for Resume
impl Freeze for Resume
impl Move for Resume
impl RefUnwindSafe for Resume
impl Send for Resumewhere
BoxRaw<StreamPoint>: Send,
impl Sync for Resumewhere
BoxRaw<StreamPoint>: Sync,
impl Unpin for Resume
impl UnsafeUnpin for Resume
impl UnwindSafe for Resumewhere
BoxRaw<StreamPoint>: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.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> ⓘ
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> ⓘ
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