#[repr(C)]pub struct PciDeviceInfo {
pub address: PciAddress,
pub vendor_id: u16,
pub device_id: u16,
pub class_code: u8,
pub subclass: u8,
pub prog_if: u8,
pub revision: u8,
pub header_type: u8,
pub interrupt_line: u8,
pub interrupt_pin: u8,
pub _reserved: u8,
}Fields§
§address: PciAddress§vendor_id: u16§device_id: u16§class_code: u8§subclass: u8§prog_if: u8§revision: u8§header_type: u8§interrupt_line: u8§interrupt_pin: u8§_reserved: u8Trait Implementations§
Source§impl Clone for PciDeviceInfo
impl Clone for PciDeviceInfo
Source§fn clone(&self) -> PciDeviceInfo
fn clone(&self) -> PciDeviceInfo
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 PciDeviceInfo
impl Debug for PciDeviceInfo
Source§impl FromBytes for PciDeviceInfo
impl FromBytes for PciDeviceInfo
Source§impl FromZeros for PciDeviceInfo
impl FromZeros for PciDeviceInfo
Source§impl IntoBytes for PciDeviceInfo
impl IntoBytes for PciDeviceInfo
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl TryFromBytes for PciDeviceInfo
impl TryFromBytes for PciDeviceInfo
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for PciDeviceInfo
Auto Trait Implementations§
impl Freeze for PciDeviceInfo
impl RefUnwindSafe for PciDeviceInfo
impl Send for PciDeviceInfo
impl Sync for PciDeviceInfo
impl Unpin for PciDeviceInfo
impl UnsafeUnpin for PciDeviceInfo
impl UnwindSafe for PciDeviceInfo
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