pub struct RuntimeStore { /* private fields */ }Implementations§
Source§impl RuntimeStore
impl RuntimeStore
pub fn new(root: impl Into<PathBuf>) -> RuntimeStore
pub fn default_cache_dir() -> Result<PathBuf, Error>
pub fn default_store() -> Result<RuntimeStore, Error>
pub fn root(&self) -> &Path
pub fn runtime_path(&self) -> Result<PathBuf, Error>
pub fn is_installed(&self) -> bool
pub async fn ensure_llama_server( &self, explicit_path: Option<&Path>, allow_download: bool, ) -> Result<PathBuf, Error>
pub async fn download_llama_server(&self) -> Result<PathBuf, Error>
Trait Implementations§
Source§impl Clone for RuntimeStore
impl Clone for RuntimeStore
Source§fn clone(&self) -> RuntimeStore
fn clone(&self) -> RuntimeStore
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 RuntimeStore
impl !RefUnwindSafe for RuntimeStore
impl Send for RuntimeStore
impl Sync for RuntimeStore
impl Unpin for RuntimeStore
impl UnsafeUnpin for RuntimeStore
impl !UnwindSafe for RuntimeStore
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