pub struct BlsConfig { /* private fields */ }
Expand description
The parser for BootLoaderSpec
type #1 configuration files
Implementations§
Source§impl BlsConfig
impl BlsConfig
Sourcepub fn new(content: &[u8], bytes: Option<usize>) -> Self
pub fn new(content: &[u8], bytes: Option<usize>) -> Self
Creates a new BlsConfig
, parsing it from a BLS configuration file formatted string.
The amount of bytes to parse as UTF-8 should be provided if required, otherwise it will be determined by the byte slice length.
If there are multiple key-value pairs of the same type, then the latest one will be used. This is not for any reason in particular, it is more of a side effect of the way the parser is implemented.
Trait Implementations§
Source§impl ConfigParser for BlsConfig
impl ConfigParser for BlsConfig
Source§fn parse_configs(
fs: &mut UefiFileSystem,
handle: Handle,
configs: &mut Vec<Config>,
)
fn parse_configs( fs: &mut UefiFileSystem, handle: Handle, configs: &mut Vec<Config>, )
Pushes configs into a mutable reference to a vector, given a filesystem and handle to that filesystem.
Auto Trait Implementations§
impl Freeze for BlsConfig
impl RefUnwindSafe for BlsConfig
impl Send for BlsConfig
impl Sync for BlsConfig
impl Unpin for BlsConfig
impl UnwindSafe for BlsConfig
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