pub struct EndpointRc(/* private fields */);Implementations§
Methods from Deref<Target = Endpoint>§
pub fn device_type(&self) -> DeviceType
pub fn bar(&self, slot: u8) -> Option<Bar>
pub fn bar_mmio(&self, slot: u8) -> Option<Range<usize>>
pub fn set_bar(&mut self, slot: u8, value: usize) -> Result<(), BarWriteError>
pub fn bars(&self) -> [Option<Bar>; 6]
pub fn capabilities_pointer(&self) -> u16
pub fn capabilities(&self) -> Vec<PciCapability>
pub fn interrupt_pin(&self) -> u8
pub fn interrupt_line(&self) -> u8
pub fn subsystem_id(&self) -> u16
pub fn subsystem_vendor_id(&self) -> u16
pub fn set_interrupt_pin(&mut self, pin: u8)
pub fn set_interrupt_line(&mut self, line: u8)
Methods from Deref<Target = PciHeaderBase>§
pub fn header(&self) -> PciHeader
pub fn address(&self) -> PciAddress
pub fn header_type(&self) -> HeaderType
pub fn has_multiple_functions(&self) -> bool
pub fn update_command<F>(&mut self, f: F)
pub fn status(&self) -> StatusRegister
pub fn command(&self) -> CommandRegister
pub fn revision_and_class(&self) -> RevisionAndClass
pub fn vendor_id(&self) -> u16
pub fn device_id(&self) -> u16
pub fn read(&self, offset: u16) -> u32
pub fn write(&self, offset: u16, value: u32)
Trait Implementations§
Source§impl Deref for EndpointRc
impl Deref for EndpointRc
Source§impl DerefMut for EndpointRc
impl DerefMut for EndpointRc
Auto Trait Implementations§
impl Freeze for EndpointRc
impl !RefUnwindSafe for EndpointRc
impl Send for EndpointRc
impl Sync for EndpointRc
impl Unpin for EndpointRc
impl !UnwindSafe for EndpointRc
Blanket Implementations§
Source§impl<T> Background for T
impl<T> Background for T
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