pub trait LinkRights:
Send
+ Sync
+ Debug {
// Required method
fn holds(
&self,
action: LinkAction,
subject: &SubjectBinding,
now: u64,
) -> Result<GrantReceipt, AccessDecisionError>;
}Expand description
A machine’s pass answering, offline, whether it holds a link grant on a bound link. The real answer comes from the verified pass; a fixture answers from a table.
Required Methods§
Sourcefn holds(
&self,
action: LinkAction,
subject: &SubjectBinding,
now: u64,
) -> Result<GrantReceipt, AccessDecisionError>
fn holds( &self, action: LinkAction, subject: &SubjectBinding, now: u64, ) -> Result<GrantReceipt, AccessDecisionError>
Whether this machine’s pass holds action on the bound link at now.
§Errors
The one refusal shape with its cause.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".