pub struct MacModel {
pub cpid: u16,
pub bdid: u8,
pub board: &'static str,
pub identifier: &'static str,
pub name: &'static str,
}Expand description
A known Apple Silicon Mac model, keyed by chip ID + board ID as reported in the DFU-mode USB serial string.
Fields§
§cpid: u16§bdid: u8§board: &'static strBoard config, e.g. “J313AP”.
identifier: &'static strModel identifier, e.g. “MacBookAir10,1” — the key used by firmware APIs.
name: &'static strMarketing name, e.g. “MacBook Air (M1, Late 2020)”.
Trait Implementations§
impl Copy for MacModel
impl Eq for MacModel
impl StructuralPartialEq for MacModel
Auto Trait Implementations§
impl Freeze for MacModel
impl RefUnwindSafe for MacModel
impl Send for MacModel
impl Sync for MacModel
impl Unpin for MacModel
impl UnsafeUnpin for MacModel
impl UnwindSafe for MacModel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.