pub enum ModuleEeprom<'a> {
Header(IterableHeader<'a>),
Offset(u32),
Length(u32),
Page(u8),
Bank(u8),
I2cAddress(u8),
Data(&'a [u8]),
}Available on crate feature
ethtool only.Variants§
Implementations§
Source§impl ModuleEeprom<'_>
impl ModuleEeprom<'_>
pub fn new<'a>(buf: &'a [u8]) -> IterableModuleEeprom<'a> ⓘ
Trait Implementations§
Source§impl<'a> Clone for ModuleEeprom<'a>
impl<'a> Clone for ModuleEeprom<'a>
Source§fn clone(&self) -> ModuleEeprom<'a>
fn clone(&self) -> ModuleEeprom<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ModuleEeprom<'a>
impl<'a> RefUnwindSafe for ModuleEeprom<'a>
impl<'a> Send for ModuleEeprom<'a>
impl<'a> Sync for ModuleEeprom<'a>
impl<'a> Unpin for ModuleEeprom<'a>
impl<'a> UnsafeUnpin for ModuleEeprom<'a>
impl<'a> UnwindSafe for ModuleEeprom<'a>
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