Struct smbioslib::SMBiosSystemEventLog[][src]

pub struct SMBiosSystemEventLog<'a> { /* fields omitted */ }

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

impl<'a> SMBiosSystemEventLog<'a>[src]

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

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

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

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.

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

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.

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

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

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

Current status of the system event-log

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

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.

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

Address associated with the access method

The data present depends on the Access Method field value

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

Format of the log header area

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

Number of supported event log type descriptors that follow

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

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

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.

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

Type Descriptors

Trait Implementations

impl Debug for SMBiosSystemEventLog<'_>[src]

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

Formats the value using the given formatter. Read more

impl<'a> SMBiosStruct<'a> for SMBiosSystemEventLog<'a>[src]

const STRUCT_TYPE: u8[src]

The SMBIOS structure type Read more

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

Creates a new instance of the implementing SMBIOS type

fn parts(&self) -> &'a UndefinedStruct[src]

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

impl Serialize for SMBiosSystemEventLog<'_>[src]

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

Serialize this value into the given Serde serializer. 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

Notable traits for &'_ mut R

impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
[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

Notable traits for &'_ mut R

impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
[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.