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

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

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]

const SIGNATURE: u64[src]

A unique number assigned by the UEFI specification to the standard tables. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

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

Performs the conversion.

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.

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

Performs the conversion.