Macros§
- debugln
- Prints to the debug log, with a newline.
- eprintln
- Prints to the standard error, with a newline.
- println
- Prints to the standard output, with a newline.
- str
- Construct an EFI string from a Rust string literal.
Structs§
- Boot
Services - Represents an
EFI_BOOT_SERVICES. - Debug
File - A debug writer that write the debug log to a text file.
- Device
- Represents an
EFI_HANDLEfor a device. - EfiChar
- A non-NUL character in the EFI string.
- EfiStr
- A borrowed EFI string. The string is always have NUL at the end.
- EfiString
- An owned version of
EfiStr. The string is always have NUL at the end. - File
- Represents an
EFI_FILE_PROTOCOL. - File
Attributes - Attributes of the file to create.
- File
Info - Represents an
EFI_FILE_INFO. - File
Modes - Flags to control how to open a
File. - Guid
- An implementation of
EFI_GUID. - Image
- Represents an
EFI_HANDLEfor the image. - Loaded
Image - Represents an
EFI_LOADED_IMAGE_PROTOCOL. - Memory
Descriptor - Represents an
EFI_MEMORY_DESCRIPTOR. - Open
Protocol Attributes - Attributes of
BootServices::open_protocol(). - Owned
- Encapsulate a pointer that need to be free by some mechanism.
- Pages
- Encapsulate a pointer to one or more memory pages.
- Path
- Represents one or more
EFI_DEVICE_PATH_PROTOCOL. - PathBuf
- An owned version of
Path. - Path
Nodes - An iterator over device path nodes.
- Pool
Allocator - An implementation of
GlobalAllocusing EFI memory pool. - Runtime
Services - Represents an
EFI_RUNTIME_SERVICES. - Simple
File System - Represents an
EFI_SIMPLE_FILE_SYSTEM_PROTOCOL. - Simple
Text Input - Represents an
EFI_SIMPLE_TEXT_INPUT_PROTOCOL. - Simple
Text Output - Represents an
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL. - Status
- Represents an
EFI_STATUS. - System
Table - Represents an
EFI_SYSTEM_TABLE. - Table
Header - Represents an
EFI_TABLE_HEADER. - Table
Revision - Represents a Revision field in the
EFI_TABLE_HEADER. - Time
- Represents an
EFI_TIME.
Enums§
- Allocate
Type - Represents an
EFI_ALLOCATE_TYPE. - Debug
File Error - Represents an error when
DebugFileconstructing is failed. - Dtor
- A destructor for an object encapsulated by
Owned. - EfiString
Error - Represents an error when an
EfiStringcnostruction is failed. - File
Create Error - Represents an error when
File::create()is failed. - File
SetLen Error - Represents an error when
File::set_len()is failed. - Memory
Type - Represents an
EFI_MEMORY_TYPE. - Path
Node - Contains the data that read from a device path node.
Constants§
- PAGE_
SIZE - Page size of the system, in bytes.
Functions§
- allocate_
pages - A shortcut to
super::BootServices::allocate_pages(). - current_
image - Returns
imthat was passed toinit(). - debug_
writer - Gets the debug writer that was specified as an argument of
crate::init(). - get_
memory_ map - Just a shortcut to
super::BootServices::get_memory_map(). Do not discard the returned map if you want a key to use withsuper::BootServices::exit_boot_services(). - get_
protocol ⚠ - Invokes
EFI_BOOT_SERVICES.OpenProtocol. - init⚠
- Initializes the ZFI.
- open_
protocol ⚠ - Invokes
EFI_BOOT_SERVICES.OpenProtocol. - page_
count - Gets how many pages required for a specified number of bytes.
- pause
- Wait for a key stroke.
- system_
table - Returns
stthat was passed toinit().
Attribute Macros§
- main
- Define the entry of EFI program, automatically import
alloccrate, generateglobal_allocatorandpanic_handler.