pub struct PciAddress(/* private fields */);Expand description
The address of a PCIe function.
PCIe supports 65536 segments, each with 256 buses, each with 32 slots, each with 8 possible functions. We pack this into a u32:
ⓘ
32                              16               8         3      0
 +-------------------------------+---------------+---------+------+
 |            segment            |      bus      | device  | func |
 +-------------------------------+---------------+---------+------+Implementations§
Trait Implementations§
Source§impl Clone for PciAddress
 
impl Clone for PciAddress
Source§fn clone(&self) -> PciAddress
 
fn clone(&self) -> PciAddress
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 PciAddress
 
impl Debug for PciAddress
Source§impl Default for PciAddress
 
impl Default for PciAddress
Source§fn default() -> PciAddress
 
fn default() -> PciAddress
Returns the “default value” for a type. Read more
Source§impl Display for PciAddress
 
impl Display for PciAddress
Source§impl Ord for PciAddress
 
impl Ord for PciAddress
Source§fn cmp(&self, other: &PciAddress) -> Ordering
 
fn cmp(&self, other: &PciAddress) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PciAddress
 
impl PartialEq for PciAddress
Source§impl PartialOrd for PciAddress
 
impl PartialOrd for PciAddress
impl Copy for PciAddress
impl Eq for PciAddress
impl StructuralPartialEq for PciAddress
Auto Trait Implementations§
impl Freeze for PciAddress
impl RefUnwindSafe for PciAddress
impl Send for PciAddress
impl Sync for PciAddress
impl Unpin for PciAddress
impl UnwindSafe for PciAddress
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