Trait AuthoritySync
pub trait AuthoritySync<C, L>:
Send
+ Sync
+ 'static {
// Required method
fn authorized(&self, ext: &mut Extensions, credentials: &C) -> bool;
}
Expand description
A synchronous version of Authority
, to be used for primitive implementations.
Required Methods§
Returns true
if the credentials are authorized, otherwise false
.