pub struct PciBusNumber { /* private fields */ }
Expand description
A bus number in the PCI hierarchy (i.e. a segment:bus
tuple).
The segment (also called domain in some contexts) is usually zero and
unsupported by most enumerators.
Implementations§
Source§impl PciBusNumber
impl PciBusNumber
pub fn with_segment(segment: u16, bus: u8) -> Self
Sourcepub fn segment(&self) -> u16
pub fn segment(&self) -> u16
Gets the segment (sometimes called PCI domain) component of the PCI bus. This is zero on most systems as most systems have only one PCI segment/domain. Also most enumerators do not support correct deserializing of PCI segments, and systems with multiple PCI segments are rare enough to make testing very difficult.
Trait Implementations§
Source§impl Clone for PciBusNumber
impl Clone for PciBusNumber
Source§fn clone(&self) -> PciBusNumber
fn clone(&self) -> PciBusNumber
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 PciBusNumber
impl Debug for PciBusNumber
Source§impl Display for PciBusNumber
impl Display for PciBusNumber
Source§impl Hash for PciBusNumber
impl Hash for PciBusNumber
Source§impl Ord for PciBusNumber
impl Ord for PciBusNumber
Source§fn cmp(&self, other: &PciBusNumber) -> Ordering
fn cmp(&self, other: &PciBusNumber) -> 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 PciBusNumber
impl PartialEq for PciBusNumber
Source§impl PartialOrd for PciBusNumber
impl PartialOrd for PciBusNumber
impl Copy for PciBusNumber
impl Eq for PciBusNumber
impl StructuralPartialEq for PciBusNumber
Auto Trait Implementations§
impl Freeze for PciBusNumber
impl RefUnwindSafe for PciBusNumber
impl Send for PciBusNumber
impl Sync for PciBusNumber
impl Unpin for PciBusNumber
impl UnwindSafe for PciBusNumber
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