pub unsafe fn open<T>(path: &Path, symbol: &[u8]) -> KitResult<LoadedPlugin<T>>Expand description
Opens a cdylib and calls its entry function.
§Safety
pathmust point at a plugin installed by this kit (or a layout-equivalent dynamic library);Tmust have the same layout as the struct that plugin exports.
§Errors
KitError::LibraryLoad:dlopenfailed.KitError::SymbolMissing: there is no exported symbol namedsymbol.KitError::NullEntry: the entry function returned a null pointer.