pub trait Scope: Sized + Debug {
// Required method
fn request_is_allowed<M: ReadableMessage>(&self, request: &M) -> 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".