pub struct FileAnalysisStorage;
Expand description
File analysis storage implementation
Implementations§
Trait Implementations§
Source§impl AnalysisStorage for FileAnalysisStorage
impl AnalysisStorage for FileAnalysisStorage
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 FileAnalysisStorage
impl RefUnwindSafe for FileAnalysisStorage
impl Send for FileAnalysisStorage
impl Sync for FileAnalysisStorage
impl Unpin for FileAnalysisStorage
impl UnwindSafe for FileAnalysisStorage
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