Struct hello_world::HelloWorldInterface
source · pub struct HelloWorldInterface {
pub(crate) obj: *mut ConfObject,
pub(crate) interface: *mut HelloworldinterfaceInternalInterface,
}
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 HelloworldinterfaceInternalInterface
Trait Implementations§
source§impl Interface for HelloWorldInterface
impl Interface for HelloWorldInterface
source§type InternalInterface = HelloworldinterfaceInternalInterface
type InternalInterface = HelloworldinterfaceInternalInterface
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<HelloWorldInterface> for HelloWorld
Auto Trait Implementations§
impl Freeze for HelloWorldInterface
impl RefUnwindSafe for HelloWorldInterface
impl !Send for HelloWorldInterface
impl !Sync for HelloWorldInterface
impl Unpin for HelloWorldInterface
impl UnwindSafe for HelloWorldInterface
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