Skip to main content

open

Function open 

Source
pub unsafe fn open<T>(path: &Path, symbol: &[u8]) -> KitResult<LoadedPlugin<T>>
Expand description

Opens a cdylib and calls its entry function.

§Safety

  • path must point at a plugin installed by this kit (or a layout-equivalent dynamic library);
  • T must have the same layout as the struct that plugin exports.

§Errors