#[repr(C)]pub struct PcieCap {Show 24 fields
_cap_vndr: u8,
_cap_next: u8,
pcie_cap: u16,
dev_cap: u32,
dev_control: u16,
dev_status: u16,
link_cap: u32,
link_control: u16,
link_status: u16,
slot_cap: u32,
slot_control: u16,
slot_status: u16,
root_control: u16,
root_cap: u16,
root_status: u32,
dev_cap_2: u32,
dev_control_2: u16,
dev_status_2: u16,
link_cap_2: u32,
link_control_2: u16,
link_status_2: u16,
slot_cap_2: u32,
slot_control_2: u16,
slot_status_2: u16,
}
Fields§
§_cap_vndr: u8
§_cap_next: u8
§pcie_cap: u16
§dev_cap: u32
§dev_control: u16
§dev_status: u16
§link_cap: u32
§link_control: u16
§link_status: u16
§slot_cap: u32
§slot_control: u16
§slot_status: u16
§root_control: u16
§root_cap: u16
§root_status: u32
§dev_cap_2: u32
§dev_control_2: u16
§dev_status_2: u16
§link_cap_2: u32
§link_control_2: u16
§link_status_2: u16
§slot_cap_2: u32
§slot_control_2: u16
§slot_status_2: u16
Implementations§
Trait Implementations§
source§impl PciCapability for PcieCap
impl PciCapability for PcieCap
impl Copy for PcieCap
Auto Trait Implementations§
impl RefUnwindSafe for PcieCap
impl Send for PcieCap
impl Sync for PcieCap
impl Unpin for PcieCap
impl UnwindSafe for PcieCap
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.