pub trait DesignationResolver: Send + Sync {
// Required method
fn resolve(
&self,
target: &ObjectId,
operation: &Operation,
ctx: &DesignationContext,
) -> Result<Vec<Designation>, ResolverError>;
}Expand description
A resolver that turns a (target, operation, context) triple into the
designations the engine will attach to the minted capability.
Implementations should be stateless or use interior mutability; the
engine holds the resolver as Box<dyn DesignationResolver> and calls it
concurrently from many mint paths.
Required Methods§
fn resolve( &self, target: &ObjectId, operation: &Operation, ctx: &DesignationContext, ) -> Result<Vec<Designation>, ResolverError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".