Struct simics::api::interface::interfaces::MapDemapInterface
source · pub struct MapDemapInterface {
obj: *mut ConfObject,
interface: *mut map_demap_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut map_demap_interface
Implementations§
source§impl MapDemapInterface
impl MapDemapInterface
sourcepub fn add_map(
&mut self,
dev: *mut conf_object_t,
target: *mut conf_object_t,
map_info: map_info_t,
) -> Result<c_int>
pub fn add_map( &mut self, dev: *mut conf_object_t, target: *mut conf_object_t, map_info: map_info_t, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn remove_map(
&mut self,
dev: *mut conf_object_t,
function: c_int,
) -> Result<c_int>
pub fn remove_map( &mut self, dev: *mut conf_object_t, function: c_int, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn add_default(
&mut self,
dev: *mut conf_object_t,
target: *mut conf_object_t,
map_info: map_info_t,
) -> Result<c_int>
pub fn add_default( &mut self, dev: *mut conf_object_t, target: *mut conf_object_t, map_info: map_info_t, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn remove_default(&mut self) -> Result<()>
pub fn remove_default(&mut self) -> Result<()>
Automatically generated method for the interface
sourcepub fn map_simple(
&mut self,
dev: *mut conf_object_t,
dev_port: *const c_char,
map_info: map_info_t,
) -> Result<c_int>
pub fn map_simple( &mut self, dev: *mut conf_object_t, dev_port: *const c_char, map_info: map_info_t, ) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn map_bridge(
&mut self,
dev: *mut conf_object_t,
dev_port: *const c_char,
target: *mut conf_object_t,
target_port: *const c_char,
map_info: map_info_t,
) -> Result<c_int>
pub fn map_bridge( &mut self, dev: *mut conf_object_t, dev_port: *const c_char, target: *mut conf_object_t, target_port: *const c_char, map_info: map_info_t, ) -> Result<c_int>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for MapDemapInterface
impl Interface for MapDemapInterface
source§type InternalInterface = map_demap_interface
type InternalInterface = map_demap_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 MapDemapInterface
impl RefUnwindSafe for MapDemapInterface
impl !Send for MapDemapInterface
impl !Sync for MapDemapInterface
impl Unpin for MapDemapInterface
impl UnwindSafe for MapDemapInterface
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