pub struct Endpoint {Show 15 fields
pub address: PciAddress,
pub vendor_id: u16,
pub device_id: u16,
pub command: CommandRegister,
pub status: StatusRegister,
pub has_multiple_functions: bool,
pub device_revision: u8,
pub base_class: u8,
pub sub_class: u8,
pub interface: u8,
pub bar: BarVec,
pub interrupt_pin: u8,
pub interrupt_line: u8,
pub capability_pointer: u16,
pub capabilities: Vec<PciCapability>,
}Fields§
§address: PciAddress§vendor_id: u16§device_id: u16§command: CommandRegister§status: StatusRegister§has_multiple_functions: bool§device_revision: u8§base_class: u8§sub_class: u8§interface: u8§bar: BarVec§interrupt_pin: u8§interrupt_line: u8§capability_pointer: u16§capabilities: Vec<PciCapability>Implementations§
Source§impl Endpoint
impl Endpoint
pub fn device_type(&self) -> DeviceType
pub fn update_command<F, C: Chip>(&self, root: &mut RootComplex<C>, f: F)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnwindSafe for Endpoint
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