Enum Chassis
#[non_exhaustive]pub enum Chassis {
Unset,
Vm,
Container,
Desktop,
Laptop,
Convertible,
Server,
Tablet,
Handset,
Watch,
Embedded,
Other(String),
}Expand description
The chassis type of the machine.
This is the value of the Chassis property and the argument of
SetChassis. Chassis::Unset is the empty string. The property
returns it when no type is set or detected. Passing it to
SetChassis turns automatic detection back on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unset
No chassis type. This is the empty string.
Vm
A virtual machine.
Container
A container.
Desktop
A desktop computer.
Laptop
A laptop.
Convertible
A laptop that can turn into a tablet.
Server
A server.
Tablet
A tablet.
Handset
A handset.
Watch
A watch.
Embedded
An embedded device.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for Chassis
impl<'de> Deserialize<'de> for Chassis
§fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Chassis
impl StructuralPartialEq for Chassis
Auto Trait Implementations§
impl Freeze for Chassis
impl RefUnwindSafe for Chassis
impl Send for Chassis
impl Sync for Chassis
impl Unpin for Chassis
impl UnsafeUnpin for Chassis
impl UnwindSafe for Chassis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.