pub struct ComponentStore { /* private fields */ }Implementations§
Source§impl ComponentStore
impl ComponentStore
pub fn new(cache_root: impl AsRef<Path>) -> Result<Self, StoreError>
pub fn with_default_cache() -> Result<Self, StoreError>
pub fn cache_root(&self) -> &Path
pub fn fetch_from_str( &self, locator: &str, policy: &VerificationPolicy, ) -> Result<StoreArtifact, StoreError>
pub fn fetch( &self, locator: &StoreLocator, policy: &VerificationPolicy, ) -> Result<StoreArtifact, StoreError>
Trait Implementations§
Source§impl Clone for ComponentStore
impl Clone for ComponentStore
Source§fn clone(&self) -> ComponentStore
fn clone(&self) -> ComponentStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ComponentStore
impl !RefUnwindSafe for ComponentStore
impl Send for ComponentStore
impl Sync for ComponentStore
impl Unpin for ComponentStore
impl !UnwindSafe for ComponentStore
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