pub struct SummaryDb { /* private fields */ }Implementations§
Source§impl SummaryDb
impl SummaryDb
pub fn open(path: &Path) -> Result<Self>
pub fn open_read_only(path: &Path) -> Result<Self>
pub fn open_read_only_resilient(path: &Path) -> Result<Self>
pub fn open_read_only_with_recovery(path: &Path) -> Result<SummaryReadOnlyOpen>
pub fn get_by_symbol(&self, name: &str) -> Result<Vec<Summary>>
pub fn get_by_file(&self, path: &str) -> Result<Vec<Summary>>
pub fn all(&self) -> Result<Vec<Summary>>
pub fn insert(&self, summary: &Summary) -> Result<()>
pub fn replace_file(&self, file_path: &str, summaries: &[Summary]) -> Result<()>
pub fn is_current(&self, file_path: &str, content_hash: &str) -> Result<bool>
pub fn stats(&self, root: &Path) -> Result<SummaryStats>
pub fn delete_by_file(&self, file_path: &str) -> Result<usize>
pub fn cached_file_paths(&self) -> Result<BTreeSet<String>>
Auto Trait Implementations§
impl !Freeze for SummaryDb
impl !RefUnwindSafe for SummaryDb
impl !Sync for SummaryDb
impl !UnwindSafe for SummaryDb
impl Send for SummaryDb
impl Unpin for SummaryDb
impl UnsafeUnpin for SummaryDb
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