pub struct NativeRuntimeCache { /* private fields */ }Implementations§
Source§impl NativeRuntimeCache
impl NativeRuntimeCache
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn root(&self) -> &Path
pub fn runtime_dir( &self, mesh_version: &str, native_runtime_id: &str, ) -> PathBuf
pub fn installed(&self) -> Result<Vec<InstalledNativeRuntime>>
pub fn find_installed( &self, mesh_version: &str, native_runtime_id: &str, ) -> Result<Option<InstalledNativeRuntime>>
pub fn install_from_dir( &self, source_dir: &Path, ) -> Result<InstalledNativeRuntime>
pub fn remove( &self, mesh_version: &str, native_runtime_id: &str, ) -> Result<bool>
pub fn prune_plan( &self, active_mesh_version: &str, mode: NativeRuntimePruneMode, ) -> Result<CachePrunePlan>
pub fn prune( &self, active_mesh_version: &str, mode: NativeRuntimePruneMode, ) -> Result<CachePrunePlan>
Trait Implementations§
Source§impl Clone for NativeRuntimeCache
impl Clone for NativeRuntimeCache
Source§fn clone(&self) -> NativeRuntimeCache
fn clone(&self) -> NativeRuntimeCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeRuntimeCache
impl Debug for NativeRuntimeCache
impl Eq for NativeRuntimeCache
Source§impl PartialEq for NativeRuntimeCache
impl PartialEq for NativeRuntimeCache
impl StructuralPartialEq for NativeRuntimeCache
Auto Trait Implementations§
impl Freeze for NativeRuntimeCache
impl RefUnwindSafe for NativeRuntimeCache
impl Send for NativeRuntimeCache
impl Sync for NativeRuntimeCache
impl Unpin for NativeRuntimeCache
impl UnsafeUnpin for NativeRuntimeCache
impl UnwindSafe for NativeRuntimeCache
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