Struct SMBiosSystemEventLog

Source
pub struct SMBiosSystemEventLog<'a> { /* private fields */ }
Expand description

§System Event Log (Type 15)

The presence of this structure within the SMBIOS data returned for a system indicates that the system supports an event log. An event log is a fixed-length area within a non-volatile storage element, starting with a fixed-length (and vendor-specific) header record, followed by one or more variable-length log records.

Compliant with: DMTF SMBIOS Reference Specification 3.4.0 (DSP0134) Document Date: 2020-07-17

Implementations§

Source§

impl<'a> SMBiosSystemEventLog<'a>

Source

pub fn log_area_length(&self) -> Option<u16>

Length, in bytes, of the overall event log area, from the first byte of header to the last byte of data

Source

pub fn log_header_start_offset(&self) -> Option<u16>

Defines the starting offset (or index) within the nonvolatile storage of the event-log’s header, from the Access Method Address For single-byte indexed I/O accesses, the most-significant byte of the start offset is set to 00h.

Source

pub fn log_data_start_offset(&self) -> Option<u16>

Defines the starting offset (or index) within the nonvolatile storage of the event-log’s first data byte, from the Access Method Address For single-byte indexed I/O accesses, the most-significant byte of the start offset is set to 00h.

NOTE: The data directly follows any header information. Therefore, the header length can be determined by subtracting the Header Start Offset from the Data Start Offset.

Source

pub fn access_method(&self) -> Option<AccessMethodData>

Defines the Location and Method used by higher-level software to access the log area

Source

pub fn log_status(&self) -> Option<LogStatus>

Current status of the system event-log

Source

pub fn log_change_token(&self) -> Option<u32>

Unique token that is reassigned every time the event log changes

Can be used to determine if additional events have occurred since the last time the log was read.

Source

pub fn access_method_address(&self) -> Option<u32>

Address associated with the access method

The data present depends on the Access Method field value

Source

pub fn log_header_format(&self) -> Option<HeaderFormatData>

Format of the log header area

Source

pub fn number_of_supported_log_type_descriptors(&self) -> Option<u8>

Number of supported event log type descriptors that follow

If the value is 0, the list that starts at offset 17h is not present.

Source

pub fn length_of_each_log_type_descriptor(&self) -> Option<u8>

Number of bytes associated with each type entry in the list below The value is currently “hard-coded” as 2, because each entry consists of two bytes. This field’s presence allows future additions to the type list. Software that interprets the following list should not assume a list entry’s length.

Source

pub fn type_descriptors(&self) -> Option<TypeDescriptors<'_>>

Type Descriptors

Trait Implementations§

Source§

impl Debug for SMBiosSystemEventLog<'_>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'a> SMBiosStruct<'a> for SMBiosSystemEventLog<'a>

Source§

const STRUCT_TYPE: u8 = 15u8

The SMBIOS structure type Read more
Source§

fn new(parts: &'a UndefinedStruct) -> Self

Creates a new instance of the implementing SMBIOS type
Source§

fn parts(&self) -> &'a UndefinedStruct

Contains the standard parts/sections of the implementing SMBIOS type.
Source§

impl Serialize for SMBiosSystemEventLog<'_>

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

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.