#[non_exhaustive]pub enum SqpkCommand {
AddData(Box<SqpkAddData>),
DeleteData(SqpkDeleteData),
ExpandData(SqpkExpandData),
Header(SqpkHeader),
TargetInfo(SqpkTargetInfo),
File(Box<SqpkFile>),
Index(SqpkIndex),
PatchInfo(SqpkPatchInfo),
}Expand description
Sub-command of a SQPK chunk; the variant is selected by the command byte.
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.
AddData(Box<SqpkAddData>)
SQPK A — write data at a block offset in a .dat file.
DeleteData(SqpkDeleteData)
SQPK D — overwrite a block range with empty-block markers.
ExpandData(SqpkExpandData)
SQPK E — expand a block range with empty-block markers.
Header(SqpkHeader)
SQPK H — write a 1024-byte header at offset 0 or 1024.
TargetInfo(SqpkTargetInfo)
SQPK T — target platform / region metadata.
File(Box<SqpkFile>)
SQPK F — add, delete, or otherwise mutate a whole file.
Index(SqpkIndex)
SQPK I — index entry add/delete metadata; not applied directly.
PatchInfo(SqpkPatchInfo)
SQPK X — patch install info metadata; not applied directly.
Trait Implementations§
Source§impl Apply for SqpkCommand
impl Apply for SqpkCommand
Source§impl Clone for SqpkCommand
impl Clone for SqpkCommand
Source§fn clone(&self) -> SqpkCommand
fn clone(&self) -> SqpkCommand
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 moreSource§impl Debug for SqpkCommand
impl Debug for SqpkCommand
Source§impl PartialEq for SqpkCommand
impl PartialEq for SqpkCommand
Source§fn eq(&self, other: &SqpkCommand) -> bool
fn eq(&self, other: &SqpkCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SqpkCommand
impl StructuralPartialEq for SqpkCommand
Auto Trait Implementations§
impl Freeze for SqpkCommand
impl RefUnwindSafe for SqpkCommand
impl Send for SqpkCommand
impl Sync for SqpkCommand
impl Unpin for SqpkCommand
impl UnsafeUnpin for SqpkCommand
impl UnwindSafe for SqpkCommand
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