[][src]Struct uefi::table::runtime::RuntimeServices

#[repr(C)]pub struct RuntimeServices { /* fields omitted */ }

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]

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.