pub struct BootRecord {
pub platform: String,
pub bootable: bool,
pub load_lba: u32,
pub sectors: u16,
pub sha256: Option<String>,
}Expand description
One El Torito boot entry, summarised for the provenance report.
Fields§
§platform: StringBoot platform (e.g. X86, EFI, Mac, Other).
bootable: boolWhether the entry is marked bootable.
load_lba: u32LBA of the boot image (for carving / hashing).
sectors: u16Boot image length in virtual 512-byte sectors.
sha256: Option<String>Lowercase hex SHA-256 of the boot image bytes (for matching against
known-malicious images); None if the image is unreadable.
Trait Implementations§
Source§impl Clone for BootRecord
impl Clone for BootRecord
Source§fn clone(&self) -> BootRecord
fn clone(&self) -> BootRecord
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 moreAuto Trait Implementations§
impl Freeze for BootRecord
impl RefUnwindSafe for BootRecord
impl Send for BootRecord
impl Sync for BootRecord
impl Unpin for BootRecord
impl UnsafeUnpin for BootRecord
impl UnwindSafe for BootRecord
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