Skip to main content

DesignationResolver

Trait DesignationResolver 

Source
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§

Source

fn resolve( &self, target: &ObjectId, operation: &Operation, ctx: &DesignationContext, ) -> Result<Vec<Designation>, ResolverError>

Implementors§