Struct smbioslib::SMBiosSystemSlot[][src]

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

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.

Implementations

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

pub fn slot_designation(&self) -> Option<String>[src]

Slot Designation

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

Slot Type

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

Slot Data Bus Width

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

Current Usage

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

Slot Length

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

Slot Id

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

Slot Characteristics 1

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

Slot Characteristics 2

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

Segment Group Number (Base)

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

Bus Number (Base)

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

Device/Function Number (Base)

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

Data Bus Width (Base)

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

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

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

Notable traits for SlotPeerGroupIterator<'a>

impl<'a> Iterator for SlotPeerGroupIterator<'a> type Item = SlotPeerGroup<'a>;
[src]

Iterates over the SlotPeerGroup entries

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

Slot Information

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

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.

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

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.

Trait Implementations

impl Debug for SMBiosSystemSlot<'_>[src]

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

Formats the value using the given formatter. Read more

impl<'a> SMBiosStruct<'a> for SMBiosSystemSlot<'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 SMBiosSystemSlot<'_>[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

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

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.