pub struct Journal {
pub version: u32,
pub format: String,
pub parts: Vec<(PathBuf, u64)>,
pub tail_start: u64,
pub tail_crc: u32,
pub output: PathBuf,
pub total_size: u64,
pub committed_len: u64,
pub links: Vec<Link>,
pub resume: Option<Resume>,
pub restoring: Option<Vec<(u64, Vec<u8>)>>,
}Fields§
§version: u32§format: String§parts: Vec<(PathBuf, u64)>Every part of the archive with its original length.
tail_start: u64§tail_crc: u32§output: PathBuf§total_size: u64§committed_len: u64The archive is truncated to this once the latest batch is committed. Every unit starting at or after it is done.
links: Vec<Link>Links are made last, so nothing extracted can be written through one and every hard link’s target already exists.
resume: Option<Resume>The large file being extracted while its archive bytes are freed, if one is in progress. It always belongs to the highest uncommitted unit.
restoring: Option<Vec<(u64, Vec<u8>)>>Set while restore turns the archive back into a normal one: the
bytes it overwrites below committed_len, so that an interrupted
restore can be undone by putting them back and cutting off whatever it
appended.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Journal
impl<'de> Deserialize<'de> for Journal
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Journal
impl RefUnwindSafe for Journal
impl Send for Journal
impl Sync for Journal
impl Unpin for Journal
impl UnsafeUnpin for Journal
impl UnwindSafe for Journal
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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