CheckedPermissions

Trait CheckedPermissions 

Source
pub trait CheckedPermissions:
    Clone
    + Default
    + 'static {
    const NAME: &str;
}
Expand description

Marker trait for the server name and compile-time permissions attached to a connection.

Client crates normally get an implementation from #[derive(Permissions)] via the API crate’s use_api! macro. The derived implementation also emits MessageAllowed<M> implementations for every message granted to the caller by the API manifest.

Required Associated Constants§

Source

const NAME: &str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§