Skip to main content

AssignmentRepository

Trait AssignmentRepository 

Source
pub(super) trait AssignmentRepository: Send + Sync {
    // Required methods
    fn pending_jobs<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PendingJob>, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn mark_running<'life0, 'async_trait>(
        &'life0 self,
        job_id: Uuid,
    ) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn online_nodes<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<OnlineNode>, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn permissions<'life0, 'life1, 'async_trait>(
        &'life0 self,
        public_keys: &'life1 [NodePublicKey],
    ) -> Pin<Box<dyn Future<Output = Result<Vec<NodePermission>, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn user_discord_ids<'life0, 'life1, 'async_trait>(
        &'life0 self,
        user_ids: &'life1 [Uuid],
    ) -> Pin<Box<dyn Future<Output = Result<FastMap<Uuid, String>, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn friend_memberships<'life0, 'life1, 'async_trait>(
        &'life0 self,
        user_ids: &'life1 [Uuid],
    ) -> Pin<Box<dyn Future<Output = Result<FastMap<Uuid, Vec<Uuid>>, RepositoryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn pending_jobs<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<PendingJob>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn mark_running<'life0, 'async_trait>( &'life0 self, job_id: Uuid, ) -> Pin<Box<dyn Future<Output = Result<u64, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn online_nodes<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<OnlineNode>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn permissions<'life0, 'life1, 'async_trait>( &'life0 self, public_keys: &'life1 [NodePublicKey], ) -> Pin<Box<dyn Future<Output = Result<Vec<NodePermission>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn user_discord_ids<'life0, 'life1, 'async_trait>( &'life0 self, user_ids: &'life1 [Uuid], ) -> Pin<Box<dyn Future<Output = Result<FastMap<Uuid, String>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn friend_memberships<'life0, 'life1, 'async_trait>( &'life0 self, user_ids: &'life1 [Uuid], ) -> Pin<Box<dyn Future<Output = Result<FastMap<Uuid, Vec<Uuid>>, RepositoryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§