pub enum HeaderType {
Normal(Normal),
Bridge(Bridge),
Cardbus(Cardbus),
Reserved(u8),
}Expand description
Identifies the layout of the second part of the predefined header (beginning at byte 10h in Configuration Space) and also whether or not the device contains multiple functions.
Variants§
Implementations§
Source§impl HeaderType
impl HeaderType
pub fn expansion_rom(&self) -> Option<ExpansionRom>
Trait Implementations§
Source§impl Clone for HeaderType
impl Clone for HeaderType
Source§fn clone(&self) -> HeaderType
fn clone(&self) -> HeaderType
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 HeaderType
impl Debug for HeaderType
Source§impl<'a> From<&'a HeaderType> for u8
impl<'a> From<&'a HeaderType> for u8
Source§fn from(data: &'a HeaderType) -> Self
fn from(data: &'a HeaderType) -> Self
Converts to this type from the input type.
Source§impl From<HeaderType> for u8
impl From<HeaderType> for u8
Source§fn from(data: HeaderType) -> Self
fn from(data: HeaderType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HeaderType
impl PartialEq for HeaderType
impl Eq for HeaderType
impl StructuralPartialEq for HeaderType
Auto Trait Implementations§
impl Freeze for HeaderType
impl RefUnwindSafe for HeaderType
impl Send for HeaderType
impl Sync for HeaderType
impl Unpin for HeaderType
impl UnwindSafe for HeaderType
Blanket Implementations§
Source§impl<T> AsPrimitive<()> for T
impl<T> AsPrimitive<()> for T
fn as_primitive(self)
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