pub struct Trailer {
pub version: u32,
pub stub: Section,
pub payload_zip: Section,
pub install_lua: Section,
pub uninstall_lua: Section,
pub manifest: Section,
pub signed_stub: Section,
}Expand description
Parsed overlay trailer. stub.len is the overlay start (spec R5); the
uninstaller copies [0..stub.len) as its engine prefix (Phase 3).
Fields§
§version: u32§stub: Section§payload_zip: Section§install_lua: Section§uninstall_lua: Section§manifest: Section§signed_stub: SectionPre-signed bare uninstall stub. Zero-length = none embedded; the runtime then falls back to prefix-copying its own (unsigned) stub.
Implementations§
Source§impl Trailer
impl Trailer
Sourcepub fn parse(bytes: &[u8]) -> Result<Trailer, TrailerError>
pub fn parse(bytes: &[u8]) -> Result<Trailer, TrailerError>
Parse the trailing TRAILER_LEN bytes of a setup.exe.
bytes must be exactly the last TRAILER_LEN bytes of the file.
Trait Implementations§
impl Copy for Trailer
impl Eq for Trailer
impl StructuralPartialEq for Trailer
Auto Trait Implementations§
impl Freeze for Trailer
impl RefUnwindSafe for Trailer
impl Send for Trailer
impl Sync for Trailer
impl Unpin for Trailer
impl UnsafeUnpin for Trailer
impl UnwindSafe for Trailer
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