Struct uefi::table::runtime::RuntimeServices [−][src]
Contains pointers to all of 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.
Implementations
impl RuntimeServices
[src]
pub fn get_time(&self) -> Result<Time>
[src]
Query the current time and date information
pub fn get_time_and_caps(&self) -> Result<(Time, TimeCapabilities)>
[src]
Query the current time and date information and the RTC capabilities
pub unsafe fn set_time(&mut self, time: &Time) -> Result
[src]
Sets the current local time and date information
During runtime, if a PC-AT CMOS device is present in the platform, the
caller must synchronize access to the device before calling set_time
.
Safety
Undefined behavior could happen if multiple tasks try to use this function at the same time without synchronisation.
pub unsafe fn set_virtual_address_map(
&self,
map: &mut [MemoryDescriptor]
) -> Result
[src]
&self,
map: &mut [MemoryDescriptor]
) -> Result
Changes the runtime addressing mode of EFI firmware from physical to virtual.
Safety
Setting new virtual memory map is unsafe and may cause undefined behaviors.
pub fn reset(&self, rt: ResetType, status: Status, data: Option<&[u8]>) -> !
[src]
Resets the computer.
Trait Implementations
impl Table for RuntimeServices
[src]
Auto Trait Implementations
impl Send for RuntimeServices
[src]
impl Sync for RuntimeServices
[src]
impl Unpin for RuntimeServices
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,