Struct smbioslib::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.
Implementations
sourceimpl<'a> SMBiosSystemSlot<'a>
impl<'a> SMBiosSystemSlot<'a>
sourcepub fn slot_designation(&self) -> Option<String>
pub fn slot_designation(&self) -> Option<String>
Slot Designation
sourcepub fn system_slot_type(&self) -> Option<SystemSlotTypeData>
pub fn system_slot_type(&self) -> Option<SystemSlotTypeData>
Slot Type
sourcepub fn slot_data_bus_width(&self) -> Option<SlotWidthData>
pub fn slot_data_bus_width(&self) -> Option<SlotWidthData>
Slot Data Bus Width
sourcepub fn current_usage(&self) -> Option<SlotCurrentUsageData>
pub fn current_usage(&self) -> Option<SlotCurrentUsageData>
Current Usage
sourcepub fn slot_length(&self) -> Option<SlotLengthData>
pub fn slot_length(&self) -> Option<SlotLengthData>
Slot Length
sourcepub fn slot_id(&self) -> Option<SystemSlotId>
pub fn slot_id(&self) -> Option<SystemSlotId>
Slot Id
sourcepub fn slot_characteristics_1(&self) -> Option<SystemSlotCharacteristics1>
pub fn slot_characteristics_1(&self) -> Option<SystemSlotCharacteristics1>
Slot Characteristics 1
sourcepub fn slot_characteristics_2(&self) -> Option<SystemSlotCharacteristics2>
pub fn slot_characteristics_2(&self) -> Option<SystemSlotCharacteristics2>
Slot Characteristics 2
sourcepub fn segment_group_number(&self) -> Option<SegmentGroupNumber>
pub fn segment_group_number(&self) -> Option<SegmentGroupNumber>
Segment Group Number (Base)
sourcepub fn bus_number(&self) -> Option<BusNumber>
pub fn bus_number(&self) -> Option<BusNumber>
Bus Number (Base)
sourcepub fn device_function_number(&self) -> Option<DeviceFunctionNumber>
pub fn device_function_number(&self) -> Option<DeviceFunctionNumber>
Device/Function Number (Base)
sourcepub fn data_bus_width(&self) -> Option<u8>
pub fn data_bus_width(&self) -> Option<u8>
Data Bus Width (Base)
sourcepub fn peer_group_count(&self) -> Option<usize>
pub fn peer_group_count(&self) -> Option<usize>
Number of peer Segment/Bus/Device/Function/Width groups that follow
sourcepub fn peer_group_iterator(&'a self) -> SlotPeerGroupIterator<'a>ⓘNotable traits for SlotPeerGroupIterator<'a>impl<'a> Iterator for SlotPeerGroupIterator<'a> type Item = SlotPeerGroup<'a>;
pub fn peer_group_iterator(&'a self) -> SlotPeerGroupIterator<'a>ⓘNotable traits for SlotPeerGroupIterator<'a>impl<'a> Iterator for SlotPeerGroupIterator<'a> type Item = SlotPeerGroup<'a>;
Iterates over the SlotPeerGroup entries
sourcepub fn slot_information(&self) -> Option<u8>
pub fn slot_information(&self) -> Option<u8>
Slot Information
sourcepub fn slot_physical_width(&self) -> Option<SlotWidthData>
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.
sourcepub fn slot_pitch(&self) -> Option<u16>
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.
Trait Implementations
sourceimpl Debug for SMBiosSystemSlot<'_>
impl Debug for SMBiosSystemSlot<'_>
sourceimpl<'a> SMBiosStruct<'a> for SMBiosSystemSlot<'a>
impl<'a> SMBiosStruct<'a> for SMBiosSystemSlot<'a>
sourceconst STRUCT_TYPE: u8
const STRUCT_TYPE: u8
The SMBIOS structure type Read more
sourcefn new(parts: &'a UndefinedStruct) -> Self
fn new(parts: &'a UndefinedStruct) -> Self
Creates a new instance of the implementing SMBIOS type
sourcefn parts(&self) -> &'a UndefinedStruct
fn parts(&self) -> &'a UndefinedStruct
Contains the standard parts/sections of the implementing SMBIOS type.
sourceimpl Serialize for SMBiosSystemSlot<'_>
impl Serialize for SMBiosSystemSlot<'_>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more