Enclosure

Struct Enclosure 

Source
pub struct Enclosure<'buffer> {
Show 16 fields pub handle: u16, pub manufacturer: &'buffer str, pub chassis_lock: bool, pub enclosure_type: EnclosureType, pub version: &'buffer str, pub serial_number: &'buffer str, pub asset_tag_number: &'buffer str, pub boot_up_state: Option<State>, pub power_supply_state: Option<State>, pub thermal_state: Option<State>, pub security_status: Option<SecurityStatus>, pub oem_defined: Option<u32>, pub height: Option<u8>, pub power_cords_number: Option<u8>, pub contained_elements: Option<ContainedElements<'buffer>>, pub sku_number: Option<&'buffer str>,
}
Expand description

System Enclosure or Chassis structure

Fields§

§handle: u16

Specifies the structure’s handle

§manufacturer: &'buffer str

Manufacturer string is non-null

§chassis_lock: bool

Chassis lock is present

§enclosure_type: EnclosureType

Type field identifies the type of enclosure. (Unknown is disallowed.)

§version: &'buffer str

Version

§serial_number: &'buffer str

Serial Number

§asset_tag_number: &'buffer str

Asset 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§

Source§

impl<'buffer> Clone for Enclosure<'buffer>

Source§

fn clone(&self) -> Enclosure<'buffer>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'buffer> Debug for Enclosure<'buffer>

Source§

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

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

impl<'buffer> Hash for Enclosure<'buffer>

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl<'buffer> PartialEq for Enclosure<'buffer>

Source§

fn eq(&self, other: &Enclosure<'buffer>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'buffer> Eq for Enclosure<'buffer>

Source§

impl<'buffer> StructuralPartialEq for Enclosure<'buffer>

Auto Trait Implementations§

§

impl<'buffer> Freeze for Enclosure<'buffer>

§

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§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.