pub struct ContentCandidateStore { /* private fields */ }Implementations§
Source§impl ContentCandidateStore
impl ContentCandidateStore
pub fn open( state_root: &Path, limits: ContentTreeLimits, ) -> Result<Self, ContentCandidateStoreError>
pub fn retain( &self, tree: &DiscoveredContentTree, ) -> Result<ContentTreeDigest, ContentCandidateStoreError>
pub fn load( &self, digest: &ContentTreeDigest, ) -> Result<DiscoveredContentTree, ContentCandidateStoreError>
pub fn load_all( &self, ) -> Result<Vec<RetainedContentCandidate>, ContentCandidateStoreError>
Trait Implementations§
Source§impl Clone for ContentCandidateStore
impl Clone for ContentCandidateStore
Auto Trait Implementations§
impl Freeze for ContentCandidateStore
impl RefUnwindSafe for ContentCandidateStore
impl Send for ContentCandidateStore
impl Sync for ContentCandidateStore
impl Unpin for ContentCandidateStore
impl UnsafeUnpin for ContentCandidateStore
impl UnwindSafe for ContentCandidateStore
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