#[non_exhaustive]pub enum FormFactor {
Desktop,
Laptop,
Convertible,
Tablet,
Phone,
Handheld,
Server,
Embedded,
Wearable,
Tv,
Unknown,
}Expand description
What kind of machine this is.
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.
Desktop
A desktop.
Laptop
A laptop.
Convertible
A laptop that folds into a tablet.
Tablet
A tablet.
Phone
A phone.
Handheld
A handheld.
Server
A server.
Embedded
An embedded board.
Wearable
A wearable.
Tv
A television.
Unknown
Not known. Inside a VM the chassis describes virtual hardware, so this is the answer there.
Implementations§
Trait Implementations§
Source§impl Clone for FormFactor
impl Clone for FormFactor
impl Copy for FormFactor
Source§impl Debug for FormFactor
impl Debug for FormFactor
impl Eq for FormFactor
Source§impl Hash for FormFactor
impl Hash for FormFactor
Source§impl PartialEq for FormFactor
impl PartialEq for FormFactor
impl StructuralPartialEq for FormFactor
Auto Trait Implementations§
impl Forget for FormFactor
impl Freeze for FormFactor
impl RefUnwindSafe for FormFactor
impl Send for FormFactor
impl Sync for FormFactor
impl Unpin for FormFactor
impl UnsafeUnpin for FormFactor
impl UnwindSafe for FormFactor
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