pub struct PgIndexProvider { /* private fields */ }Implementations§
Source§impl PgIndexProvider
impl PgIndexProvider
pub fn new(config: Config) -> IndexResult<Self>
Trait Implementations§
Source§impl IndexProvider for PgIndexProvider
impl IndexProvider for PgIndexProvider
type Config = Config
fn healthcheck<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn get_sparse_entry<'life0, 'life1, 'async_trait>(
&'life0 self,
crate_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = IndexResult<Vec<CrateVersion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_sparse_entry<'life0, 'life1, 'async_trait>(
&'life0 self,
crate_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = IndexResult<Vec<CrateVersion>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get the sparse index entry for a crate. Read more
Source§fn confirm_existence<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
crate_name: &'life1 str,
version: &'life2 Version,
) -> Pin<Box<dyn Future<Output = IndexResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn confirm_existence<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
crate_name: &'life1 str,
version: &'life2 Version,
) -> Pin<Box<dyn Future<Output = IndexResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Confirm that a particular crate and version pair exists, and return its yank status
Source§fn yank_crate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
crate_name: &'life1 str,
version: &'life2 Version,
) -> Pin<Box<dyn Future<Output = IndexResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn yank_crate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
crate_name: &'life1 str,
version: &'life2 Version,
) -> Pin<Box<dyn Future<Output = IndexResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Yank a crate version.
Source§fn unyank_crate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
crate_name: &'life1 str,
version: &'life2 Version,
) -> Pin<Box<dyn Future<Output = IndexResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn unyank_crate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
crate_name: &'life1 str,
version: &'life2 Version,
) -> Pin<Box<dyn Future<Output = IndexResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Unyank a crate version
Source§fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
query_string: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = IndexResult<SearchResults>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn search<'life0, 'life1, 'async_trait>(
&'life0 self,
query_string: &'life1 str,
limit: usize,
) -> Pin<Box<dyn Future<Output = IndexResult<SearchResults>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Search the index for crates satisfying a query string, returning up to
limit results. Read moreSource§fn publish<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
version: &'life1 Publish,
checksum: &'life2 str,
end_step: Pin<&'life3 mut (dyn Future<Output = IndexResult<()>> + Send)>,
) -> Pin<Box<dyn Future<Output = IndexResult<CompletedPublication>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn publish<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
version: &'life1 Publish,
checksum: &'life2 str,
end_step: Pin<&'life3 mut (dyn Future<Output = IndexResult<()>> + Send)>,
) -> Pin<Box<dyn Future<Output = IndexResult<CompletedPublication>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Publish a crate version. Read more
Source§fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
pagination: &'life1 ListQuery,
) -> Pin<Box<dyn Future<Output = IndexResult<ListAll>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list<'life0, 'life1, 'async_trait>(
&'life0 self,
pagination: &'life1 ListQuery,
) -> Pin<Box<dyn Future<Output = IndexResult<ListAll>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List crates in the index, optionally specifying pagination. Read more
Auto Trait Implementations§
impl Freeze for PgIndexProvider
impl !RefUnwindSafe for PgIndexProvider
impl Send for PgIndexProvider
impl Sync for PgIndexProvider
impl Unpin for PgIndexProvider
impl !UnwindSafe for PgIndexProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more