pub struct PciLocation {
pub bus: u8,
pub device: u8,
pub function: u8,
}Expand description
PCI device location
Fields§
§bus: u8§device: u8§function: u8Implementations§
Source§impl PciLocation
impl PciLocation
pub fn new(bus: u8, device: u8, function: u8) -> Self
Sourcepub fn to_config_address(&self) -> u32
pub fn to_config_address(&self) -> u32
Convert to configuration address
Trait Implementations§
Source§impl Clone for PciLocation
impl Clone for PciLocation
Source§fn clone(&self) -> PciLocation
fn clone(&self) -> PciLocation
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PciLocation
impl Debug for PciLocation
Source§impl Ord for PciLocation
impl Ord for PciLocation
Source§impl PartialEq for PciLocation
impl PartialEq for PciLocation
Source§impl PartialOrd for PciLocation
impl PartialOrd for PciLocation
Source§fn partial_cmp(&self, other: &PciLocation) -> Option<Ordering>
fn partial_cmp(&self, other: &PciLocation) -> Option<Ordering>
impl Copy for PciLocation
impl Eq for PciLocation
impl StructuralPartialEq for PciLocation
Auto Trait Implementations§
impl Freeze for PciLocation
impl RefUnwindSafe for PciLocation
impl Send for PciLocation
impl Sync for PciLocation
impl Unpin for PciLocation
impl UnwindSafe for PciLocation
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)