pub struct ResultCache { /* private fields */ }Implementations§
Source§impl ResultCache
impl ResultCache
pub fn in_folder(folder: PathBuf) -> ResultCache
pub fn folder(&self) -> &Path
pub fn read<T: DeserializeOwned>( &self, commit: CommitId, settings: &impl Serialize, ) -> Option<T>
pub fn write<T: Serialize>( &self, commit: CommitId, settings: &impl Serialize, result: &T, ) -> Result<(), ResultCacheError>
Auto Trait Implementations§
impl Forget for ResultCache
impl Freeze for ResultCache
impl Move for ResultCache
impl RefUnwindSafe for ResultCache
impl Send for ResultCachewhere
RawVecInner: Send,
impl Sync for ResultCachewhere
RawVecInner: Sync,
impl Unpin for ResultCache
impl UnsafeUnpin for ResultCache
impl UnwindSafe for ResultCachewhere
RawVecInner: UnwindSafe,
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