Function emf_core_base_rs::global::library::register_loader[][src]

pub fn register_loader<'loader, L, LT, T>(
    _token: &mut LockToken<L>,
    loader: &'loader LT,
    lib_type: &impl AsRef<str>
) -> Result<Loader<'static, Owned>, Error> where
    T: LibraryLoaderAPI<'static>,
    LibraryLoader<T, Owned>: From<&'loader LT>, 

Registers a new loader.

The loader can load libraries of the type lib_type. The loader must outlive the binding to the interface.

Failure

The function fails if the library type already exists.

Return

Handle on success, error otherwise.