Struct driver_virtio::pci::CapabilityInfo
pub struct CapabilityInfo {
pub offset: u8,
pub id: u8,
pub private_header: u16,
}
Expand description
Information about a PCI device capability.
Fields§
§offset: u8
The offset of the capability in the PCI configuration space of the device function.
id: u8
The ID of the capability.
private_header: u16
The third and fourth bytes of the capability, to save reading them again.
Trait Implementations§
§impl Clone for CapabilityInfo
impl Clone for CapabilityInfo
§fn clone(&self) -> CapabilityInfo
fn clone(&self) -> CapabilityInfo
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 more§impl Debug for CapabilityInfo
impl Debug for CapabilityInfo
§impl PartialEq for CapabilityInfo
impl PartialEq for CapabilityInfo
§fn eq(&self, other: &CapabilityInfo) -> bool
fn eq(&self, other: &CapabilityInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CapabilityInfo
impl Eq for CapabilityInfo
impl StructuralEq for CapabilityInfo
impl StructuralPartialEq for CapabilityInfo
Auto Trait Implementations§
impl RefUnwindSafe for CapabilityInfo
impl Send for CapabilityInfo
impl Sync for CapabilityInfo
impl Unpin for CapabilityInfo
impl UnwindSafe for CapabilityInfo
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