pub trait LocalReadAuthorizationPolicy: Send + Sync {
// Required method
fn authorize_local_read(
&self,
request: &LocalReadAuthorizationRequest,
) -> Result<(), String>;
}Expand description
The server-local policy consulted for every local data read.
A range worker receives only this narrow interface through
ServerLocalReadAuthorizationRecheck. It must not infer user authority
from the authenticated cluster peer or from a delegation credential alone.
Required Methods§
Authorize the exact read that would be permitted on this server locally.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".