Skip to main content

FfiNodeFactory

Trait FfiNodeFactory 

Source
pub trait FfiNodeFactory:
    Send
    + Sync
    + 'static {
    // Required methods
    fn node_type(&self) -> RString;
    fn create(&self, params: RString) -> RResult<FfiNodeBox, RString>;
}
Expand description

FFI-safe factory — produces FfiNode instances from a JSON params blob.

Required Methods§

Implementors§

Source§

impl<_ErasedPtr> FfiNodeFactory for FfiNodeFactory_TO<_ErasedPtr>
where Self: Send + Sync + 'static, _ErasedPtr: AsPtr<PtrTarget = ()>,