#[repr(C)]
pub struct RuntimeServices {
Show 15 fields pub header: Header, pub get_time: unsafe extern "efiapi" fn(time: *mut Time, capabilities: *mut TimeCapabilities) -> Status, pub set_time: unsafe extern "efiapi" fn(time: *const Time) -> Status, pub get_wakeup_time: unsafe extern "efiapi" fn(enabled: *mut u8, pending: *mut u8, time: *mut Time) -> Status, pub set_wakeup_time: unsafe extern "efiapi" fn(enable: u8, time: *const Time) -> Status, pub set_virtual_address_map: unsafe extern "efiapi" fn(map_size: usize, desc_size: usize, desc_version: u32, virtual_map: *mut MemoryDescriptor) -> Status, pub convert_pointer: unsafe extern "efiapi" fn(debug_disposition: usize, address: *mut *const c_void) -> Status, pub get_variable: unsafe extern "efiapi" fn(variable_name: *const Char16, vendor_guid: *const Guid, attributes: *mut VariableAttributes, data_size: *mut usize, data: *mut u8) -> Status, pub get_next_variable_name: unsafe extern "efiapi" fn(variable_name_size: *mut usize, variable_name: *mut u16, vendor_guid: *mut Guid) -> Status, pub set_variable: unsafe extern "efiapi" fn(variable_name: *const Char16, vendor_guid: *const Guid, attributes: VariableAttributes, data_size: usize, data: *const u8) -> Status, pub get_next_high_monotonic_count: unsafe extern "efiapi" fn(high_count: *mut u32) -> Status, pub reset_system: unsafe extern "efiapi" fn(rt: ResetType, status: Status, data_size: usize, data: *const u8) -> !, pub update_capsule: unsafe extern "efiapi" fn(capsule_header_array: *const *const CapsuleHeader, capsule_count: usize, scatter_gather_list: PhysicalAddress) -> Status, pub query_capsule_capabilities: unsafe extern "efiapi" fn(capsule_header_array: *const *const CapsuleHeader, capsule_count: usize, maximum_capsule_size: *mut usize, reset_type: *mut ResetType) -> Status, pub query_variable_info: unsafe extern "efiapi" fn(attributes: VariableAttributes, maximum_variable_storage_size: *mut u64, remaining_variable_storage_size: *mut u64, maximum_variable_size: *mut u64) -> Status,
}
Expand description

Table of pointers to all the runtime services.

This table, and the function pointers it contains are valid even after the UEFI OS loader and OS have taken control of the platform.

Fields§

§header: Header§get_time: unsafe extern "efiapi" fn(time: *mut Time, capabilities: *mut TimeCapabilities) -> Status§set_time: unsafe extern "efiapi" fn(time: *const Time) -> Status§get_wakeup_time: unsafe extern "efiapi" fn(enabled: *mut u8, pending: *mut u8, time: *mut Time) -> Status§set_wakeup_time: unsafe extern "efiapi" fn(enable: u8, time: *const Time) -> Status§set_virtual_address_map: unsafe extern "efiapi" fn(map_size: usize, desc_size: usize, desc_version: u32, virtual_map: *mut MemoryDescriptor) -> Status§convert_pointer: unsafe extern "efiapi" fn(debug_disposition: usize, address: *mut *const c_void) -> Status§get_variable: unsafe extern "efiapi" fn(variable_name: *const Char16, vendor_guid: *const Guid, attributes: *mut VariableAttributes, data_size: *mut usize, data: *mut u8) -> Status§get_next_variable_name: unsafe extern "efiapi" fn(variable_name_size: *mut usize, variable_name: *mut u16, vendor_guid: *mut Guid) -> Status§set_variable: unsafe extern "efiapi" fn(variable_name: *const Char16, vendor_guid: *const Guid, attributes: VariableAttributes, data_size: usize, data: *const u8) -> Status§get_next_high_monotonic_count: unsafe extern "efiapi" fn(high_count: *mut u32) -> Status§reset_system: unsafe extern "efiapi" fn(rt: ResetType, status: Status, data_size: usize, data: *const u8) -> !§update_capsule: unsafe extern "efiapi" fn(capsule_header_array: *const *const CapsuleHeader, capsule_count: usize, scatter_gather_list: PhysicalAddress) -> Status§query_capsule_capabilities: unsafe extern "efiapi" fn(capsule_header_array: *const *const CapsuleHeader, capsule_count: usize, maximum_capsule_size: *mut usize, reset_type: *mut ResetType) -> Status§query_variable_info: unsafe extern "efiapi" fn(attributes: VariableAttributes, maximum_variable_storage_size: *mut u64, remaining_variable_storage_size: *mut u64, maximum_variable_size: *mut u64) -> Status

Auto Trait Implementations§

§

impl RefUnwindSafe for RuntimeServices

§

impl Send for RuntimeServices

§

impl Sync for RuntimeServices

§

impl Unpin for RuntimeServices

§

impl UnwindSafe for RuntimeServices

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.