pub struct ConfigSelector {
pub segment_group: u16,
pub bus: u8,
pub device: u8,
pub function: u8,
}
Expand description
Logical PCI address for a function of a specific segment/bus/device.
Fields§
§segment_group: u16
Segment group as defined by PCI Express. Always zero for PCI Local Bus devices.
bus: u8
PCI bus number within the indicated segment group. The root bus is always bus zero.
device: u8
PCI device number on the indicated bus.
function: u8
PCI function number on the indicated device. Usually zero, but may be nonzero for multi-function devices.
Trait Implementations§
Source§impl Clone for ConfigSelector
impl Clone for ConfigSelector
Source§fn clone(&self) -> ConfigSelector
fn clone(&self) -> ConfigSelector
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 ConfigSelector
impl Debug for ConfigSelector
Source§impl Default for ConfigSelector
impl Default for ConfigSelector
Source§fn default() -> ConfigSelector
fn default() -> ConfigSelector
Returns the “default value” for a type. Read more
Source§impl PartialEq for ConfigSelector
impl PartialEq for ConfigSelector
impl Copy for ConfigSelector
impl Eq for ConfigSelector
impl StructuralPartialEq for ConfigSelector
Auto Trait Implementations§
impl Freeze for ConfigSelector
impl RefUnwindSafe for ConfigSelector
impl Send for ConfigSelector
impl Sync for ConfigSelector
impl Unpin for ConfigSelector
impl UnwindSafe for ConfigSelector
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