pub struct InitrdLoader { /* private fields */ }
Expand description
A RAII wrapper to install and uninstall the Linux initrd loading protocol.
Note: You need to call InitrdLoader::uninstall
, before
this is dropped.
Implementations§
Source§impl InitrdLoader
impl InitrdLoader
Sourcepub fn new(
boot_services: &BootServices,
handle: Handle,
initrd_data: Vec<u8>,
) -> Result<Self>
pub fn new( boot_services: &BootServices, handle: Handle, initrd_data: Vec<u8>, ) -> Result<Self>
Create a new InitrdLoader
.
handle
is the handle where the protocols are registered
on. file
is the file that is served to Linux.
pub fn uninstall(&mut self, boot_services: &BootServices) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitrdLoader
impl RefUnwindSafe for InitrdLoader
impl !Send for InitrdLoader
impl !Sync for InitrdLoader
impl Unpin for InitrdLoader
impl UnwindSafe for InitrdLoader
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