pub trait AcquireAttributeWithContext<C: Send>: AcquireAttributeWithResourceAndContext<C> {
    // Provided methods
    fn prove_with_context_async<'ctx, 'async_trait, Attr, const STAG: EntityTag>(
        self,
        context: C
    ) -> Pin<Box<dyn Future<Output = Result<ConstraintChain<STAG, DEFAULT_ELEMENT_TAG, Attr, Self>, Attr::Error>> + Send + 'async_trait>>
       where Attr::Subject: ConstraintEntity + 'static,
             C: 'async_trait,
             Self: HasEntityWithType<STAG, Attr::Subject> + Send + 'async_trait,
             Attr: AsyncAttribute<Resource = (), Context<'ctx> = C> + 'async_trait,
             'ctx: 'async_trait { ... }
    fn prove_with_context<'ctx, Attr, const STAG: EntityTag>(
        self,
        context: C
    ) -> Result<ConstraintChain<STAG, DEFAULT_ELEMENT_TAG, Attr, Self>, Attr::Error>
       where Attr::Subject: ConstraintEntity + 'static,
             Self: HasEntityWithType<STAG, Attr::Subject>,
             Attr: SyncAttribute<Resource = (), Context<'ctx> = C> { ... }
}

Provided Methods§

source

fn prove_with_context_async<'ctx, 'async_trait, Attr, const STAG: EntityTag>( self, context: C ) -> Pin<Box<dyn Future<Output = Result<ConstraintChain<STAG, DEFAULT_ELEMENT_TAG, Attr, Self>, Attr::Error>> + Send + 'async_trait>>where Attr::Subject: ConstraintEntity + 'static, C: 'async_trait, Self: HasEntityWithType<STAG, Attr::Subject> + Send + 'async_trait, Attr: AsyncAttribute<Resource = (), Context<'ctx> = C> + 'async_trait, 'ctx: 'async_trait,

source

fn prove_with_context<'ctx, Attr, const STAG: EntityTag>( self, context: C ) -> Result<ConstraintChain<STAG, DEFAULT_ELEMENT_TAG, Attr, Self>, Attr::Error>where Attr::Subject: ConstraintEntity + 'static, Self: HasEntityWithType<STAG, Attr::Subject>, Attr: SyncAttribute<Resource = (), Context<'ctx> = C>,

Object Safety§

This trait is not object safe.

Implementors§