Skip to main content

Permission

Trait Permission 

Source
pub trait Permission: 'static { }
Expand description

Marker trait for all capability permissions.

Every permission type is a zero-sized struct that implements this trait. Built-in permissions are defined in this module. Custom permissions can be defined using the #[capsec::permission] derive macro, which generates the required seal token.

§Direct implementation

Do not implement this trait manually. Use #[capsec::permission] instead. The __CapsecSeal associated type is #[doc(hidden)] and may change without notice.

Implementations on Foreign Types§

Source§

impl<A, B> Permission for (A, B)
where A: Permission, B: Permission,

Implementors§