[][src]Function safe_app::ipc::req::containers_into_vec

pub fn containers_into_vec<ContainersIter>(
    containers: ContainersIter
) -> Result<Vec<ContainerPermissions>, NulError> where
    ContainersIter: IntoIterator<Item = (String, BTreeSet<Permission>)>, 

Consumes the object and returns the wrapped raw pointer. Converts a container name + a set of permissions into an FFI representation ContainerPermissions.

You're now responsible for freeing this memory once you're done. However, notice that the ffi::ContainerPermissions struct has a Drop impl, so when it goes out of a scope, it will free allocated strings automatically.