pub struct LlamaRuntimeManager { /* private fields */ }Implementations§
Source§impl LlamaRuntimeManager
impl LlamaRuntimeManager
pub fn new(cache_root: impl Into<PathBuf>, fetcher: ArtifactFetcher) -> Self
pub const fn with_lock_timeout(self, timeout: Duration) -> Self
pub fn ensure( &self, hardware: &HardwareProfile, preferred_backend: Option<RuntimeBackend>, ) -> Result<RuntimeInstall, RuntimeError>
pub fn ensure_for( &self, platform: RuntimePlatform, backend: RuntimeBackend, ) -> Result<RuntimeInstall, RuntimeError>
Sourcepub fn inspect_for(
&self,
platform: RuntimePlatform,
backend: RuntimeBackend,
verify_archive_digest: bool,
) -> Result<RuntimeCacheInspection, RuntimeError>
pub fn inspect_for( &self, platform: RuntimePlatform, backend: RuntimeBackend, verify_archive_digest: bool, ) -> Result<RuntimeCacheInspection, RuntimeError>
Inspect pinned runtime cache paths without creating, quarantining, or downloading data.
Trait Implementations§
Source§impl Clone for LlamaRuntimeManager
impl Clone for LlamaRuntimeManager
Source§fn clone(&self) -> LlamaRuntimeManager
fn clone(&self) -> LlamaRuntimeManager
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 moreAuto Trait Implementations§
impl Freeze for LlamaRuntimeManager
impl RefUnwindSafe for LlamaRuntimeManager
impl Send for LlamaRuntimeManager
impl Sync for LlamaRuntimeManager
impl Unpin for LlamaRuntimeManager
impl UnsafeUnpin for LlamaRuntimeManager
impl UnwindSafe for LlamaRuntimeManager
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