pub struct Pci {
pub function: u8,
pub device: u8,
}
Expand description
PCI hardware device path node.
Fields§
§function: u8
PCI function number.
device: u8
PCI device number.
Trait Implementations§
source§impl BuildNode for Pci
impl BuildNode for Pci
source§fn size_in_bytes(&self) -> Result<u16, BuildError>
fn size_in_bytes(&self) -> Result<u16, BuildError>
Size of the node in bytes, including the standard node
header. Returns
BuildError::NodeTooBig
if the node’s size
does not fit in a u16
.source§fn write_data(&self, out: &mut [MaybeUninit<u8>])
fn write_data(&self, out: &mut [MaybeUninit<u8>])
Write out the node data. Read more
Auto Trait Implementations§
impl Freeze for Pci
impl RefUnwindSafe for Pci
impl Send for Pci
impl Sync for Pci
impl Unpin for Pci
impl UnwindSafe for Pci
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