Struct SMBiosSystemSlot

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

§System Slots (Type 9)

The information in this structure defines the attributes of a system slot. One structure is provided for each slot in the system.

Compliant with: DMTF SMBIOS Reference Specification 3.7.0 (DSP0134) Document Date: 2023-07-21

Implementations§

Source§

impl<'a> SMBiosSystemSlot<'a>

Source

pub fn slot_designation(&self) -> SMBiosString

Slot Designation

Source

pub fn system_slot_type(&self) -> Option<SystemSlotTypeData>

Slot Type

Source

pub fn slot_data_bus_width(&self) -> Option<SlotWidthData>

Slot Data Bus Width

Source

pub fn current_usage(&self) -> Option<SlotCurrentUsageData>

Current Usage

Source

pub fn slot_length(&self) -> Option<SlotLengthData>

Slot Length

Source

pub fn slot_id(&self) -> Option<SystemSlotId>

Slot Id

Source

pub fn slot_characteristics_1(&self) -> Option<SystemSlotCharacteristics1>

Slot Characteristics 1

Source

pub fn slot_characteristics_2(&self) -> Option<SystemSlotCharacteristics2>

Slot Characteristics 2

Source

pub fn segment_group_number(&self) -> Option<SegmentGroupNumber>

Segment Group Number (Base)

Source

pub fn bus_number(&self) -> Option<BusNumber>

Bus Number (Base)

Source

pub fn device_function_number(&self) -> Option<DeviceFunctionNumber>

Device/Function Number (Base)

Source

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

Data Bus Width (Base)

Source

pub fn peer_group_count(&self) -> Option<usize>

Number of peer Segment/Bus/Device/Function/Width groups that follow

Source

pub fn peer_group_iterator(&'a self) -> SlotPeerGroupIterator<'a>

Iterates over the SlotPeerGroup entries

Source

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

Slot Information

Source

pub fn slot_physical_width(&self) -> Option<SlotWidthData>

Slot Physical Width

This field indicates the physical width of the slot whereas slot_data_bus_width() indicates the electrical width of the slot.

The possible values of both fields are listed in Table 46 – System Slots: Slot Width field.

Source

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

Slot Pitch

The Slot Pitch field contains a numeric value that indicates the pitch of the slot in units of 1/100 millimeter.

The pitch is defined by each slot/card specification, but typically describes add-in card to add-in card pitch.

For EDSFF slots, the pitch is defined in SFF-TA-1006 table 7.1, SFF-TA-1007 table 7.1 (add-in card to add-in card pitch), and SFF-TA-1008 table 6-1 (SSD to SSD pitch).

For example, if the pitch for the slot is 12.5 mm, the value 1250 would be used.

A value of 0 implies that the slot pitch is not given or is unknown.

Source

pub fn slot_height(&self) -> Option<SlotHeightData>

Slot Height

This field indicates the maximum supported card height for the slot.

Available in version 3.5.0 and later.

Trait Implementations§

Source§

impl Debug for SMBiosSystemSlot<'_>

Source§

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

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

impl<'a> SMBiosStruct<'a> for SMBiosSystemSlot<'a>

Source§

const STRUCT_TYPE: u8 = 9u8

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

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§

§

impl<'a> Freeze for SMBiosSystemSlot<'a>

§

impl<'a> RefUnwindSafe for SMBiosSystemSlot<'a>

§

impl<'a> Send for SMBiosSystemSlot<'a>

§

impl<'a> Sync for SMBiosSystemSlot<'a>

§

impl<'a> Unpin for SMBiosSystemSlot<'a>

§

impl<'a> UnwindSafe for SMBiosSystemSlot<'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.