pub trait Scope: Sized + Debug {
// Required method
fn request_is_allowed<M: ReadableMessage>(&self, request: &M) -> bool;
// Provided method
fn is_admin(&self) -> bool { ... }
}
Expand description
A data item representing the server access policy as evaluated for a particular security context.
Required Methods§
Sourcefn request_is_allowed<M: ReadableMessage>(&self, request: &M) -> bool
fn request_is_allowed<M: ReadableMessage>(&self, request: &M) -> bool
Returns true if a request may be performed by the bound security context.
Provided Methods§
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.