pub struct ComponentStore { /* private fields */ }Implementations§
Source§impl ComponentStore
impl ComponentStore
pub fn with_cache_dir(cache_dir: Option<PathBuf>, compat: CompatPolicy) -> Self
pub fn add_fs( &mut self, id: impl Into<SourceId>, path: impl Into<PathBuf>, ) -> &mut Self
pub fn add_oci( &mut self, id: impl Into<SourceId>, reference: impl Into<String>, ) -> &mut Self
pub async fn get(&self, source_id: &str) -> Result<ComponentBytes>
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 moreSource§impl Debug for ComponentStore
impl Debug for ComponentStore
Auto 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