pub struct InMemoryAnalysisStorage { /* private fields */ }
Expand description
In-memory analysis storage
Implementations§
Trait Implementations§
Source§impl AnalysisStorage for InMemoryAnalysisStorage
impl AnalysisStorage for InMemoryAnalysisStorage
Source§fn store_analysis<'life0, 'life1, 'async_trait>(
&'life0 self,
result: &'life1 AnalysisResult,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store_analysis<'life0, 'life1, 'async_trait>(
&'life0 self,
result: &'life1 AnalysisResult,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store analysis results
Source§fn load_analysis<'life0, 'life1, 'async_trait>(
&'life0 self,
result_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AnalysisResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_analysis<'life0, 'life1, 'async_trait>(
&'life0 self,
result_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<AnalysisResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load analysis results by ID
Source§fn find_analysis<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repo_id: &'life1 str,
analysis_type: Option<&'life2 str>,
since: Option<SystemTime>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AnalysisResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_analysis<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repo_id: &'life1 str,
analysis_type: Option<&'life2 str>,
since: Option<SystemTime>,
) -> Pin<Box<dyn Future<Output = Result<Vec<AnalysisResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Find analysis results by repository and type
Source§fn delete_analysis<'life0, 'life1, 'async_trait>(
&'life0 self,
result_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_analysis<'life0, 'life1, 'async_trait>(
&'life0 self,
result_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Delete analysis results
Source§fn cleanup_old_results<'life0, 'async_trait>(
&'life0 self,
older_than: SystemTime,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cleanup_old_results<'life0, 'async_trait>(
&'life0 self,
older_than: SystemTime,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Clean up old analysis results
Auto Trait Implementations§
impl Freeze for InMemoryAnalysisStorage
impl RefUnwindSafe for InMemoryAnalysisStorage
impl Send for InMemoryAnalysisStorage
impl Sync for InMemoryAnalysisStorage
impl Unpin for InMemoryAnalysisStorage
impl UnwindSafe for InMemoryAnalysisStorage
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