#[repr(C, packed(1))]pub struct AtomHeader {
pub atom_type: u8,
pub count: u8,
pub dlen: u16,
pub reserved: u32,
}Expand description
Main structure representing EEPROM atom header
Fields§
§atom_type: u8Type identifier of the atom (e.g. 0xD0 for vendor info)
count: u8Number of structures in this atom (typically 1)
dlen: u16Length of atom data in bytes (Little Endian)
reserved: u32Reserved field (must be 0)
Trait Implementations§
Source§impl Clone for AtomHeader
impl Clone for AtomHeader
Source§fn clone(&self) -> AtomHeader
fn clone(&self) -> AtomHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AtomHeader
impl Debug for AtomHeader
Source§impl Display for AtomHeader
impl Display for AtomHeader
impl Copy for AtomHeader
Auto Trait Implementations§
impl Freeze for AtomHeader
impl RefUnwindSafe for AtomHeader
impl Send for AtomHeader
impl Sync for AtomHeader
impl Unpin for AtomHeader
impl UnwindSafe for AtomHeader
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