Struct hello_world::HelloWorldInterface2
source · pub struct HelloWorldInterface2 {
pub(crate) obj: *mut ConfObject,
pub(crate) interface: *mut Helloworldinterface2InternalInterface,
}
Expand description
The holder for the object the interface is implemented on and the pointer to the CFFI interface of function pointers
Fields§
§obj: *mut ConfObject
§interface: *mut Helloworldinterface2InternalInterface
Trait Implementations§
source§impl Interface for HelloWorldInterface2
impl Interface for HelloWorldInterface2
source§type InternalInterface = Helloworldinterface2InternalInterface
type InternalInterface = Helloworldinterface2InternalInterface
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 CStr
type Name = &'static CStr
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
impl HasInterface<HelloWorldInterface2> for HelloWorld
Auto Trait Implementations§
impl Freeze for HelloWorldInterface2
impl RefUnwindSafe for HelloWorldInterface2
impl !Send for HelloWorldInterface2
impl !Sync for HelloWorldInterface2
impl Unpin for HelloWorldInterface2
impl UnwindSafe for HelloWorldInterface2
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