Struct simics::api::interface::interfaces::ComponentInterface
source · pub struct ComponentInterface {
obj: *mut ConfObject,
interface: *mut component_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut component_interface
Implementations§
source§impl ComponentInterface
impl ComponentInterface
sourcepub fn pre_instantiate(&mut self) -> Result<bool>
pub fn pre_instantiate(&mut self) -> Result<bool>
Automatically generated method for the interface
sourcepub fn post_instantiate(&mut self) -> Result<()>
pub fn post_instantiate(&mut self) -> Result<()>
Automatically generated method for the interface
sourcepub fn create_cell(&mut self) -> Result<bool>
pub fn create_cell(&mut self) -> Result<bool>
Automatically generated method for the interface
sourcepub fn get_slots(&mut self) -> Result<AttrValue>
pub fn get_slots(&mut self) -> Result<AttrValue>
Automatically generated method for the interface
sourcepub fn get_slot_objects(&mut self) -> Result<AttrValue>
pub fn get_slot_objects(&mut self) -> Result<AttrValue>
Automatically generated method for the interface
sourcepub fn get_slot_value(&mut self, slot: *const c_char) -> Result<AttrValue>
pub fn get_slot_value(&mut self, slot: *const c_char) -> Result<AttrValue>
Automatically generated method for the interface
sourcepub fn set_slot_value(
&mut self,
slot: *const c_char,
value: attr_value_t,
) -> Result<()>
pub fn set_slot_value( &mut self, slot: *const c_char, value: attr_value_t, ) -> Result<()>
Automatically generated method for the interface
sourcepub fn has_slot(&mut self, slot: *const c_char) -> Result<bool>
pub fn has_slot(&mut self, slot: *const c_char) -> Result<bool>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for ComponentInterface
impl Interface for ComponentInterface
source§type InternalInterface = component_interface
type InternalInterface = component_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 ComponentInterface
impl RefUnwindSafe for ComponentInterface
impl !Send for ComponentInterface
impl !Sync for ComponentInterface
impl Unpin for ComponentInterface
impl UnwindSafe for ComponentInterface
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