Function emf_core_base_rs::global::module::terminate[][src]

pub fn terminate<O>(module: &mut Module<'_, O>) -> Result<(), Error> where
    O: MutableAccessIdentifier

Terminates a module.

Terminating a module also removes the interfaces it exported. The modules that depend on the module are terminated. If they list the module as a load dependency, they are also unloaded.

Failure

Fails if module is invalid or the module is not in a ready state.

Return

Error on failure.