Trait sbat::ImageSbat

source ·
pub trait ImageSbat<'a>: Default {
    // Required methods
    fn entries(&self) -> &[Entry<'a>];
    fn try_push(&mut self, entry: Entry<'a>) -> Result<(), PushError>;

    // Provided method
    fn parse(input: &'a [u8]) -> Result<Self, ParseError> { ... }
}
Expand description

Trait for image SBAT metadata.

Typically this data comes from the .sbat section of a UEFI PE executable.

Required Methods§

source

fn entries(&self) -> &[Entry<'a>]

Get the SBAT entries.

source

fn try_push(&mut self, entry: Entry<'a>) -> Result<(), PushError>

Add an SBAT entry.

Provided Methods§

source

fn parse(input: &'a [u8]) -> Result<Self, ParseError>

Parse SBAT metadata from raw CSV. This data typically comes from the .sbat section of a UEFI PE executable. Each record is parsed as an Entry.

Implementors§

source§

impl<'a> ImageSbat<'a> for ImageSbatVec<'a>

source§

impl<'a, const N: usize> ImageSbat<'a> for ImageSbatArray<'a, N>