macpepdb 1.1.0

Large peptide database for mass spectrometry
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// std import
use std::ops::Deref;

/// 3rd party imports
use anyhow::Result;

/// Wrapper for database client
///
/// # Generic parameters
/// * `C` - Database client type
pub trait GenericClient<C>: Send + Sync + Deref<Target = C> {
    fn new(database_url: &str) -> impl std::future::Future<Output = Result<Self>> + Send
    where
        Self: Sized;
    fn get_inner_client(&self) -> &C;
    fn get_database(&self) -> &str;
}