cap_access
Provide basic capability-based access control to objects.
The wrapper type WithCap
associates a capability to an object, that
is a set of access rights. When accessing the object, we must explicitly
specify the access capability, and it must not violate the capability
associated with the object at initialization.
Examples
use ;
let data = new;
// Access with the correct capability.
assert_eq!;
assert_eq!;
assert_eq!;
// Access with the incorrect capability.
assert!;
assert!;