Struct simics::api::interface::interfaces::ConnectorInterface
source · pub struct ConnectorInterface {
obj: *mut ConfObject,
interface: *mut connector_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut connector_interface
Implementations§
source§impl ConnectorInterface
impl ConnectorInterface
sourcepub fn type_(&mut self) -> Result<*mut c_char>
pub fn type_(&mut self) -> Result<*mut c_char>
Automatically generated method for the interface
sourcepub fn hotpluggable(&mut self) -> Result<bool>
pub fn hotpluggable(&mut self) -> Result<bool>
Automatically generated method for the interface
sourcepub fn direction(&mut self) -> Result<connector_direction_t>
pub fn direction(&mut self) -> Result<connector_direction_t>
Automatically generated method for the interface
sourcepub fn add_destination(&mut self, connector: *mut conf_object_t) -> Result<bool>
pub fn add_destination(&mut self, connector: *mut conf_object_t) -> Result<bool>
Automatically generated method for the interface
sourcepub fn remove_destination(
&mut self,
connector: *mut conf_object_t,
) -> Result<bool>
pub fn remove_destination( &mut self, connector: *mut conf_object_t, ) -> Result<bool>
Automatically generated method for the interface
sourcepub fn destination(&mut self) -> Result<AttrValue>
pub fn destination(&mut self) -> Result<AttrValue>
Automatically generated method for the interface
sourcepub fn check(&mut self, attr: attr_value_t) -> Result<bool>
pub fn check(&mut self, attr: attr_value_t) -> Result<bool>
Automatically generated method for the interface
sourcepub fn connect(&mut self, attr: attr_value_t) -> Result<()>
pub fn connect(&mut self, attr: attr_value_t) -> Result<()>
Automatically generated method for the interface
sourcepub fn disconnect(&mut self) -> Result<()>
pub fn disconnect(&mut self) -> Result<()>
Automatically generated method for the interface
sourcepub fn deletion_requested(&mut self) -> Result<bool>
pub fn deletion_requested(&mut self) -> Result<bool>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for ConnectorInterface
impl Interface for ConnectorInterface
source§type InternalInterface = connector_interface
type InternalInterface = connector_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 ConnectorInterface
impl RefUnwindSafe for ConnectorInterface
impl !Send for ConnectorInterface
impl !Sync for ConnectorInterface
impl Unpin for ConnectorInterface
impl UnwindSafe for ConnectorInterface
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