BootServices

Struct BootServices 

Source
pub struct BootServices {
Show 22 fields pub Hdr: TableHeader, pub AllocatePages: extern "efiapi" fn(AllocType: usize, MemoryType: MemoryType, Pages: usize, Memory: &mut usize) -> Status, pub FreePages: extern "efiapi" fn(Memory: usize, Pages: usize) -> Status, pub GetMemoryMap: extern "efiapi" fn(MemoryMapSize: &mut usize, MemoryMap: *mut MemoryDescriptor, MapKey: &mut usize, DescriptorSize: &mut usize, DescriptorVersion: &mut u32) -> Status, pub AllocatePool: extern "efiapi" fn(PoolType: MemoryType, Size: usize, Buffer: &mut usize) -> Status, pub FreePool: extern "efiapi" fn(Buffer: usize) -> Status, pub CreateEvent: extern "efiapi" fn(Kind: u32, NotifyTpl: Tpl, NotifyFunction: extern "efiapi" fn(Event: Event, Context: usize), NotifyContext: usize, Event: &mut Event) -> Status, pub WaitForEvent: extern "efiapi" fn(NumberOfEvents: usize, Event: *const Event, Index: &mut usize) -> Status, pub InstallProtocolInterface: extern "efiapi" fn(Handle: &mut Handle, Protocol: &Guid, InterfaceType: InterfaceType, Interface: usize) -> Status, pub UninstallProtocolInterface: extern "efiapi" fn(Handle: Handle, Protocol: &Guid, Interface: usize) -> Status, pub HandleProtocol: extern "efiapi" fn(Handle: Handle, Protocol: &Guid, Interface: &mut usize) -> Status, pub LocateHandle: extern "efiapi" fn(SearchType: LocateSearchType, Protocol: *const Guid, SearchKey: *const usize, BufferSize: &mut usize, Buffer: *mut Handle) -> Status, pub LoadImage: extern "efiapi" fn(BootPolicy: bool, ParentImageHandle: Handle, DevicePath: usize, SourceBuffer: *const u8, SourceSize: usize, ImageHandle: &mut Handle) -> Status, pub StartImage: extern "efiapi" fn(ImageHandle: Handle, ExitDataSize: &mut usize, ExitData: &mut *mut u16) -> Status, pub Exit: extern "efiapi" fn(ImageHandle: Handle, ExitStatus: isize, ExitDataSize: usize, ExitData: *const u16) -> Status, pub ExitBootServices: extern "efiapi" fn(ImageHandle: Handle, MapKey: usize) -> Status, pub Stall: extern "efiapi" fn(Microseconds: usize) -> Status, pub SetWatchdogTimer: extern "efiapi" fn(Timeout: usize, WatchdogCode: u64, DataSize: usize, WatchdogData: *const u16) -> Status, pub ProtocolsPerHandle: extern "efiapi" fn(Handle: Handle, ProtocolBuffer: *mut Guid, ProtocolBufferCount: usize) -> Status, pub LocateHandleBuffer: extern "efiapi" fn(SearchType: LocateSearchType, Protocol: *const Guid, SearchKey: *const usize, NoHandles: &mut usize, Buffer: &mut *mut Handle) -> Status, pub LocateProtocol: extern "efiapi" fn(Protocol: &Guid, Registration: usize, Interface: &mut usize) -> Status, pub CreateEventEx: extern "efiapi" fn(Kind: u32, NotifyTpl: Tpl, NotifyFunction: extern "efiapi" fn(Event: Event, Context: usize), NotifyContext: usize, EventGroup: *const Guid, Event: &mut Event) -> Status, /* private fields */
}

Fields§

§Hdr: TableHeader§AllocatePages: extern "efiapi" fn(AllocType: usize, MemoryType: MemoryType, Pages: usize, Memory: &mut usize) -> Status§FreePages: extern "efiapi" fn(Memory: usize, Pages: usize) -> Status§GetMemoryMap: extern "efiapi" fn(MemoryMapSize: &mut usize, MemoryMap: *mut MemoryDescriptor, MapKey: &mut usize, DescriptorSize: &mut usize, DescriptorVersion: &mut u32) -> Status§AllocatePool: extern "efiapi" fn(PoolType: MemoryType, Size: usize, Buffer: &mut usize) -> Status§FreePool: extern "efiapi" fn(Buffer: usize) -> Status§CreateEvent: extern "efiapi" fn(Kind: u32, NotifyTpl: Tpl, NotifyFunction: extern "efiapi" fn(Event: Event, Context: usize), NotifyContext: usize, Event: &mut Event) -> Status§WaitForEvent: extern "efiapi" fn(NumberOfEvents: usize, Event: *const Event, Index: &mut usize) -> Status§InstallProtocolInterface: extern "efiapi" fn(Handle: &mut Handle, Protocol: &Guid, InterfaceType: InterfaceType, Interface: usize) -> Status§UninstallProtocolInterface: extern "efiapi" fn(Handle: Handle, Protocol: &Guid, Interface: usize) -> Status§HandleProtocol: extern "efiapi" fn(Handle: Handle, Protocol: &Guid, Interface: &mut usize) -> Status§LocateHandle: extern "efiapi" fn(SearchType: LocateSearchType, Protocol: *const Guid, SearchKey: *const usize, BufferSize: &mut usize, Buffer: *mut Handle) -> Status§LoadImage: extern "efiapi" fn(BootPolicy: bool, ParentImageHandle: Handle, DevicePath: usize, SourceBuffer: *const u8, SourceSize: usize, ImageHandle: &mut Handle) -> Status§StartImage: extern "efiapi" fn(ImageHandle: Handle, ExitDataSize: &mut usize, ExitData: &mut *mut u16) -> Status§Exit: extern "efiapi" fn(ImageHandle: Handle, ExitStatus: isize, ExitDataSize: usize, ExitData: *const u16) -> Status§ExitBootServices: extern "efiapi" fn(ImageHandle: Handle, MapKey: usize) -> Status§Stall: extern "efiapi" fn(Microseconds: usize) -> Status§SetWatchdogTimer: extern "efiapi" fn(Timeout: usize, WatchdogCode: u64, DataSize: usize, WatchdogData: *const u16) -> Status§ProtocolsPerHandle: extern "efiapi" fn(Handle: Handle, ProtocolBuffer: *mut Guid, ProtocolBufferCount: usize) -> Status§LocateHandleBuffer: extern "efiapi" fn(SearchType: LocateSearchType, Protocol: *const Guid, SearchKey: *const usize, NoHandles: &mut usize, Buffer: &mut *mut Handle) -> Status§LocateProtocol: extern "efiapi" fn(Protocol: &Guid, Registration: usize, Interface: &mut usize) -> Status§CreateEventEx: extern "efiapi" fn(Kind: u32, NotifyTpl: Tpl, NotifyFunction: extern "efiapi" fn(Event: Event, Context: usize), NotifyContext: usize, EventGroup: *const Guid, Event: &mut Event) -> Status

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.