#[non_exhaustive]pub enum Chunk {
FileHeader(FileHeader),
ApplyOption(ApplyOption),
ApplyFreeSpace(ApplyFreeSpace),
AddDirectory(AddDirectory),
DeleteDirectory(DeleteDirectory),
Sqpk(SqpkCommand),
EndOfFile,
}Expand description
One top-level chunk parsed from a ZiPatch stream.
Each variant corresponds to a 4-byte wire tag; see the ZiPatchReader
iterator for the stream contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FileHeader(FileHeader)
FHDR — patch file header (version + per-version metadata).
ApplyOption(ApplyOption)
APLY — sets an apply-time option flag on the crate::ApplyContext.
ApplyFreeSpace(ApplyFreeSpace)
APFS — ApplyFreeSpace book-keeping; ignored at apply time.
AddDirectory(AddDirectory)
ADIR — create a directory under the game install root.
DeleteDirectory(DeleteDirectory)
DELD — remove a directory under the game install root.
Sqpk(SqpkCommand)
SQPK — wrapper around a SqpkCommand sub-command.
EndOfFile
Not yielded by ZiPatchReader; signals clean termination and is consumed internally.
Trait Implementations§
impl Eq for Chunk
impl StructuralPartialEq for Chunk
Auto Trait Implementations§
impl Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
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