Struct driver_pci::DeviceFunction
pub struct DeviceFunction {
pub bus: u8,
pub device: u8,
pub function: u8,
}
Expand description
An identifier for a PCI bus, device and function.
Fields§
§bus: u8
The PCI bus number, between 0 and 255.
device: u8
The device number on the bus, between 0 and 31.
function: u8
The function number of the device, between 0 and 7.
Implementations§
§impl DeviceFunction
impl DeviceFunction
Trait Implementations§
§impl Clone for DeviceFunction
impl Clone for DeviceFunction
§fn clone(&self) -> DeviceFunction
fn clone(&self) -> DeviceFunction
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 more§impl Debug for DeviceFunction
impl Debug for DeviceFunction
§impl Display for DeviceFunction
impl Display for DeviceFunction
§impl PartialEq for DeviceFunction
impl PartialEq for DeviceFunction
§fn eq(&self, other: &DeviceFunction) -> bool
fn eq(&self, other: &DeviceFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DeviceFunction
impl Eq for DeviceFunction
impl StructuralEq for DeviceFunction
impl StructuralPartialEq for DeviceFunction
Auto Trait Implementations§
impl RefUnwindSafe for DeviceFunction
impl Send for DeviceFunction
impl Sync for DeviceFunction
impl Unpin for DeviceFunction
impl UnwindSafe for DeviceFunction
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