Struct AcpiTableHeader

Source
pub struct AcpiTableHeader<'a>(/* private fields */);
Expand description

Master ACPI Table Header. This common header is used by all ACPI tables except the RSDP and FACS.

For more info on individual fields, see the ACPI spec

Implementations§

Source§

impl<'a> AcpiTableHeader<'a>

Source

pub fn signature(&self) -> &str

The table’s signature. This is a 4-byte ASCII string indicating what kind of data the table contains.

Source

pub fn length(&self) -> u32

The length of the table in bytes

Source

pub fn revision(&self) -> u8

The revision number of the table

Source

pub fn checksum(&self) -> u8

The table’s checksum. This byte is set to make all the bytes in the table sum to 0 (mod 0xff)

Source

pub fn oem_id(&self) -> &str

A string identifying the OEM

Source

pub fn oem_table_id(&self) -> &str

An OEM-provided string to identify this particular instance of a table

Source

pub fn oem_revision(&self) -> u32

The table’s revision number (larger is newer)

Source

pub fn creator_id(&self) -> &str

An ASCII string identifying the tool used to create the table. If the table contains AML code, this identifies the ASL compiler.

Source

pub fn creator_revision(&self) -> u32

The revision number of the tool used to create the table (larger is newer) If the table contains AML code, this is the revision number of the ASL compiler.

Source

pub fn content(&self) -> &'a [u8]

Gets the rest of the table (all the table’s data apart from the header) as a byte slice

Trait Implementations§

Source§

impl<'a> Debug for AcpiTableHeader<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for AcpiTableHeader<'a>

§

impl<'a> RefUnwindSafe for AcpiTableHeader<'a>

§

impl<'a> Send for AcpiTableHeader<'a>

§

impl<'a> Sync for AcpiTableHeader<'a>

§

impl<'a> Unpin for AcpiTableHeader<'a>

§

impl<'a> UnwindSafe for AcpiTableHeader<'a>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

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

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

Performs the conversion.
Source§

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

Source§

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

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

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

Performs the conversion.