Struct simics::api::interface::interfaces::OsaControlV2Interface
source · pub struct OsaControlV2Interface {
obj: *mut ConfObject,
interface: *mut osa_control_v2_interface,
}
Expand description
Automatically generated structure for the interface
Fields§
§obj: *mut ConfObject
§interface: *mut osa_control_v2_interface
Implementations§
source§impl OsaControlV2Interface
impl OsaControlV2Interface
sourcepub fn request(&mut self, initiator: *const c_char) -> Result<AttrValue>
pub fn request(&mut self, initiator: *const c_char) -> Result<AttrValue>
Automatically generated method for the interface
sourcepub fn release(&mut self, id: request_id_t) -> Result<()>
pub fn release(&mut self, id: request_id_t) -> Result<()>
Automatically generated method for the interface
sourcepub fn clear_state(&mut self) -> Result<AttrValue>
pub fn clear_state(&mut self) -> Result<AttrValue>
Automatically generated method for the interface
Trait Implementations§
source§impl Interface for OsaControlV2Interface
impl Interface for OsaControlV2Interface
source§const NAME: &'static [u8] = crate::api::sys::OSA_CONTROL_V2_INTERFACE
const NAME: &'static [u8] = crate::api::sys::OSA_CONTROL_V2_INTERFACE
The name of the interface
source§type InternalInterface = osa_control_v2_interface
type InternalInterface = osa_control_v2_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 OsaControlV2Interface
impl RefUnwindSafe for OsaControlV2Interface
impl !Send for OsaControlV2Interface
impl !Sync for OsaControlV2Interface
impl Unpin for OsaControlV2Interface
impl UnwindSafe for OsaControlV2Interface
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