macro_rules! mint_defined_capability {
($type:ident) => { ... };
}Expand description
Create an instance of a capability type defined by define_capability_type!.
Use this to create one instance of a capability previously declared via
define_capability_type. Note: You can only mint capabilities in the
module that defines this type, or in a descendant of that module.
§Usage Example
ⓘ
let proc_cap = unsafe { mint_defined_capability!(ProcCapForManager) };§Restrictions
This macro invokes an unsafe function. Callers must wrap use of this
macro in unsafe to assert they are trusted to mint a capability.