Struct SMBiosManagementControllerHostInterface

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

§Management Controller Host Interface (Type 42)

The information in this structure defines the attributes of a Management Controller Host Interface that is not discoverable by “Plug and Play” mechanisms. The Type 42 structure can be used to describe a physical management controller host interface and one or more protocols that share that interface.

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

In SMBIOS 3.2, a Change Request is applied to this structure to add the missing information that is needed to parse the structure completely. The addition of the Interface Type Specific Data Length field may cause parser (prior to SMBIOS 3.2) compatibility issue when Interface Type = OEM. Prior to SMBIOS 3.2, when Interface Type = OEM, the first four bytes following the Interface Type field is the IANA-assigned vendor ID.

Implementations§

Source§

impl<'a> SMBiosManagementControllerHostInterface<'a>

Source

pub fn interface_type(&self) -> Option<HostInterfaceTypeData>

Management Controller Interface Type

Source

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

Interface Type Specific Data Length

Source

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

Management Controller Host Interface Data as specified by the Interface Type

This field has a minimum of four bytes.

If interface type = OEM, the first four bytes are the vendor ID (MSB first), as assigned by the Internet Assigned Numbers Authority (IANA).

This format uses the “Enterprise Number” that is assigned and maintained by IANA (www.iana.org) as the means of identifying a particular vendor, company, or organization.

Source

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

X number of Protocol Records for this Host Interface Type

Source

pub fn protocol_record_iterator(&self) -> ProtocolRecordIterator<'_>

Protocol Records

Trait Implementations§

Source§

impl Debug for SMBiosManagementControllerHostInterface<'_>

Source§

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

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

impl<'a> SMBiosStruct<'a> for SMBiosManagementControllerHostInterface<'a>

Source§

const STRUCT_TYPE: u8 = 42u8

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 SMBiosManagementControllerHostInterface<'_>

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.