#[non_exhaustive]pub struct Hardware {
pub chip: Chip,
pub platform: String,
pub loader: String,
pub interface: [u8; 4],
pub medium: u8,
pub bd_write: bool,
}Expand description
The hardware an image is built for, as its configuration record describes
it. Hardware::family hashes these fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.chip: ChipThe controller generation.
platform: StringThe record’s platform code, e.g. JB7.
loader: StringThe bootloader named by the boot banner, e.g. Code or JB8.
interface: [u8; 4]The first four bytes of the Core feature: its physical interface.
medium: u8The first byte of feature 0x0003.
bd_write: boolWhether the Profile List enables a BD writing profile.
Implementations§
Trait Implementations§
impl Eq for Hardware
impl StructuralPartialEq for Hardware
Auto Trait Implementations§
impl Freeze for Hardware
impl RefUnwindSafe for Hardware
impl Send for Hardware
impl Sync for Hardware
impl Unpin for Hardware
impl UnsafeUnpin for Hardware
impl UnwindSafe for Hardware
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