pub struct RedbCache { /* private fields */ }Implementations§
Source§impl RedbCache
impl RedbCache
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn get_crates_io_map(&self) -> Result<HashMap<String, CachedEntry>>
pub fn set_crates_io_map( &self, map: &HashMap<String, CachedEntry>, ) -> Result<()>
pub fn get_github_map(&self) -> Result<HashMap<String, CachedEntry>>
pub fn set_github_map(&self, map: &HashMap<String, CachedEntry>) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for RedbCache
impl !UnwindSafe for RedbCache
impl Freeze for RedbCache
impl Send for RedbCache
impl Sync for RedbCache
impl Unpin for RedbCache
impl UnsafeUnpin for RedbCache
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