Struct simics::api::interface::interfaces::PciExpressHotplugInterface
source · pub struct PciExpressHotplugInterface {
obj: *mut ConfObject,
interface: *mut pci_express_hotplug_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut pci_express_hotplug_interface
Implementations§
source§impl PciExpressHotplugInterface
impl PciExpressHotplugInterface
sourcepub fn presence_change(
&mut self,
src: *mut conf_object_t,
is_present: c_int,
) -> Result<()>
pub fn presence_change( &mut self, src: *mut conf_object_t, is_present: c_int, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn inject_power_fault(&mut self) -> Result<()>
pub fn inject_power_fault(&mut self) -> Result<()>
Automatically generated method for the interface
Automatically generated method for the interface
sourcepub fn set_mrl_state(&mut self, locked: c_int) -> Result<()>
pub fn set_mrl_state(&mut self, locked: c_int) -> Result<()>
Automatically generated method for the interface
sourcepub fn get_mrl_state(&mut self) -> Result<c_int>
pub fn get_mrl_state(&mut self) -> Result<c_int>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for PciExpressHotplugInterface
impl Interface for PciExpressHotplugInterface
source§const NAME: &'static [u8] = crate::api::sys::PCI_EXPRESS_HOTPLUG_INTERFACE
const NAME: &'static [u8] = crate::api::sys::PCI_EXPRESS_HOTPLUG_INTERFACE
The name of the interface
source§type InternalInterface = pci_express_hotplug_interface
type InternalInterface = pci_express_hotplug_interface
The inner interface type, which is a struct of nullable extern “C” function pointers
and must be default constructable as all NULL pointers (i.e. None values)
source§type Name = &'static [u8]
type Name = &'static [u8]
The type of the name of the interface, must be convertible to raw C string to pass to
the simulator
source§fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
fn new(obj: *mut ConfObject, interface: *mut Self::InternalInterface) -> Self
Create a new instance of this interface
Auto Trait Implementations§
impl Freeze for PciExpressHotplugInterface
impl RefUnwindSafe for PciExpressHotplugInterface
impl !Send for PciExpressHotplugInterface
impl !Sync for PciExpressHotplugInterface
impl Unpin for PciExpressHotplugInterface
impl UnwindSafe for PciExpressHotplugInterface
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