Trait ICapeUnitPortImpl

Source
pub trait ICapeUnitPortImpl: ICapeUnitPort {
    type T: ICapeInterfaceImpl + ICapeUnitPortImpl;

    const VTABLE: CAPEOPEN_1_2_ICapeUnitPort_VTable = _;

    // Required method
    fn as_interface_pointer(&mut self) -> *mut ICapeInterface;

    // Provided methods
    fn init_interface() -> ICapeInterface { ... }
    fn init<Timpl: ICapeUnitPortImpl + ICapeInterfaceImpl>(u: &mut Timpl) { ... }
    extern "C" fn raw_get_port_type(
        me: *mut c_void,
        port_type: *mut CAPEOPEN_1_2_CapePortType,
    ) -> CapeResult { ... }
    extern "C" fn raw_get_direction(
        me: *mut c_void,
        port_direction: *mut CAPEOPEN_1_2_CapePortDirection,
    ) -> CapeResult { ... }
    extern "C" fn raw_get_connected_object(
        me: *mut c_void,
        connected_object: *mut *mut ICapeInterface,
    ) -> CapeResult { ... }
    extern "C" fn raw_connect(
        me: *mut c_void,
        object_to_connect: *mut ICapeInterface,
    ) -> CapeResult { ... }
    extern "C" fn raw_disconnect(me: *mut c_void) -> CapeResult { ... }
}

Provided Associated Constants§

Required Associated Types§

Required Methods§

Provided Methods§

Source

fn init_interface() -> ICapeInterface

prepare CAPEOPEN_1_2_ICapeUnitPort interface and return as generic ICapeInterface pointer

Source

fn init<Timpl: ICapeUnitPortImpl + ICapeInterfaceImpl>(u: &mut Timpl)

Source

extern "C" fn raw_get_port_type( me: *mut c_void, port_type: *mut CAPEOPEN_1_2_CapePortType, ) -> CapeResult

Source

extern "C" fn raw_get_direction( me: *mut c_void, port_direction: *mut CAPEOPEN_1_2_CapePortDirection, ) -> CapeResult

Source

extern "C" fn raw_get_connected_object( me: *mut c_void, connected_object: *mut *mut ICapeInterface, ) -> CapeResult

Source

extern "C" fn raw_connect( me: *mut c_void, object_to_connect: *mut ICapeInterface, ) -> CapeResult

Source

extern "C" fn raw_disconnect(me: *mut c_void) -> CapeResult

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§