#[repr(C, packed(4))]pub struct PcieFunctionHeader {
pub vendor_id: u16,
pub device_id: u16,
pub command: u16,
pub status: u16,
pub revision: u8,
pub progif: u8,
pub subclass: u8,
pub class: u8,
pub cache_line_size: u8,
pub latency_timer: u8,
pub header_type: u8,
pub bist: u8,
}
Expand description
The standard PCIe function header. See the PCI spec for more details.
Fields§
§vendor_id: u16
§device_id: u16
§command: u16
§status: u16
§revision: u8
§progif: u8
§subclass: u8
§class: u8
§cache_line_size: u8
§latency_timer: u8
§header_type: u8
§bist: u8
Trait Implementations§
source§impl Clone for PcieFunctionHeader
impl Clone for PcieFunctionHeader
source§fn clone(&self) -> PcieFunctionHeader
fn clone(&self) -> PcieFunctionHeader
Returns a copy 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 PcieFunctionHeader
impl Debug for PcieFunctionHeader
impl Copy for PcieFunctionHeader
Auto Trait Implementations§
impl Freeze for PcieFunctionHeader
impl ObjSafe for PcieFunctionHeader
impl RefUnwindSafe for PcieFunctionHeader
impl Send for PcieFunctionHeader
impl Sync for PcieFunctionHeader
impl Unpin for PcieFunctionHeader
impl UnwindSafe for PcieFunctionHeader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)