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: u8The PCI bus number, between 0 and 255.
device: u8The device number on the bus, between 0 and 31.
function: u8The function number of the device, between 0 and 7.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceFunction
impl Clone for DeviceFunction
Source§fn clone(&self) -> DeviceFunction
fn clone(&self) -> DeviceFunction
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 DeviceFunction
impl Debug for DeviceFunction
Source§impl Display for DeviceFunction
impl Display for DeviceFunction
Source§impl Ord for DeviceFunction
impl Ord for DeviceFunction
Source§impl PartialEq for DeviceFunction
impl PartialEq for DeviceFunction
Source§impl PartialOrd for DeviceFunction
impl PartialOrd for DeviceFunction
Source§fn partial_cmp(&self, other: &DeviceFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &DeviceFunction) -> Option<Ordering>
impl Copy for DeviceFunction
impl Eq for DeviceFunction
impl StructuralPartialEq for DeviceFunction
Auto Trait Implementations§
impl Freeze for DeviceFunction
impl RefUnwindSafe for DeviceFunction
impl Send for DeviceFunction
impl Sync for DeviceFunction
impl Unpin for DeviceFunction
impl UnwindSafe for DeviceFunction
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)