Struct simics::api::interface::interfaces::InstructionFetchInterface
source · pub struct InstructionFetchInterface {
obj: *mut ConfObject,
interface: *mut instruction_fetch_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut instruction_fetch_interface
Implementations§
source§impl InstructionFetchInterface
impl InstructionFetchInterface
sourcepub fn get_mode(&mut self) -> Result<instruction_fetch_mode_t>
pub fn get_mode(&mut self) -> Result<instruction_fetch_mode_t>
Automatically generated method for the interface
sourcepub fn set_mode(&mut self, mode: instruction_fetch_mode_t) -> Result<()>
pub fn set_mode(&mut self, mode: instruction_fetch_mode_t) -> Result<()>
Automatically generated method for the interface
sourcepub fn get_line_size(&mut self) -> Result<c_int>
pub fn get_line_size(&mut self) -> Result<c_int>
Automatically generated method for the interface
sourcepub fn set_line_size(&mut self, size: c_int) -> Result<()>
pub fn set_line_size(&mut self, size: c_int) -> Result<()>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for InstructionFetchInterface
impl Interface for InstructionFetchInterface
source§const NAME: &'static [u8] = crate::api::sys::INSTRUCTION_FETCH_INTERFACE
const NAME: &'static [u8] = crate::api::sys::INSTRUCTION_FETCH_INTERFACE
The name of the interface
source§type InternalInterface = instruction_fetch_interface
type InternalInterface = instruction_fetch_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 InstructionFetchInterface
impl RefUnwindSafe for InstructionFetchInterface
impl !Send for InstructionFetchInterface
impl !Sync for InstructionFetchInterface
impl Unpin for InstructionFetchInterface
impl UnwindSafe for InstructionFetchInterface
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