Struct dmidecode::enclosure::Enclosure [−][src]
System Enclosure or Chassis structure
Fields
handle: u16Specifies the structure’s handle
manufacturer: &'buffer strManufacturer string is non-null
chassis_lock: boolChassis lock is present
enclosure_type: EnclosureTypeType field identifies the type of enclosure. (Unknown is disallowed.)
version: &'buffer strVersion
serial_number: &'buffer strSerial Number
asset_tag_number: &'buffer strAsset Tag Number
boot_up_state: Option<State>State of the enclosure when it was last booted;
power_supply_state: Option<State>State of the enclosure’s power supply (or supplies) when last booted
thermal_state: Option<State>Thermal state of the enclosure when last booted
security_status: Option<SecurityStatus>Physical security status of the enclosure when last booted
oem_defined: Option<u32>OEM- or BIOS vendor-specific information
height: Option<u8>Height of the enclosure , in ’U’s A U is a standard unit of measure for the height of a rack or rack-mountable component and is equal to 1.75 inches or 4.445 cm. A value of 00h indicates that the enclosure height is unspecified.
power_cords_number: Option<u8>Number of power cords associated with the enclosure or chassis A value of 00h indicates that the number is unspecified.
contained_elements: Option<ContainedElements<'buffer>>Each Contained Element record consists of sub-fields that further describe elements contained by the chassis
sku_number: Option<&'buffer str>Number of null-terminated string describing the chassis or enclosure SKU number
Trait Implementations
impl<'buffer> Clone for Enclosure<'buffer>[src]
impl<'buffer> Debug for Enclosure<'buffer>[src]
impl<'buffer> Eq for Enclosure<'buffer>[src]
impl<'buffer> Hash for Enclosure<'buffer>[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<'buffer> PartialEq<Enclosure<'buffer>> for Enclosure<'buffer>[src]
fn eq(&self, other: &Enclosure<'buffer>) -> bool[src]
fn ne(&self, other: &Enclosure<'buffer>) -> bool[src]
impl<'buffer> StructuralEq for Enclosure<'buffer>[src]
impl<'buffer> StructuralPartialEq for Enclosure<'buffer>[src]
Auto Trait Implementations
impl<'buffer> RefUnwindSafe for Enclosure<'buffer>
impl<'buffer> Send for Enclosure<'buffer>
impl<'buffer> Sync for Enclosure<'buffer>
impl<'buffer> Unpin for Enclosure<'buffer>
impl<'buffer> UnwindSafe for Enclosure<'buffer>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,