Skip to main content

Permission

Trait Permission 

Source
pub trait Permission:
    Sealed
    + Send
    + Sync
    + 'static {
    // Required method
    fn name() -> &'static str;
}
Expand description

A marker trait for permissions.

Implementations are zero-sized types. The sealed::Sealed bound means no one outside typesec-core can create new permissions that bypass the policy engine.

Required Methods§

Source

fn name() -> &'static str

Human-readable name used in audit logs and error messages.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§