pub struct RuntimeLoader { /* private fields */ }Implementations§
Source§impl RuntimeLoader
impl RuntimeLoader
pub fn new() -> Result<Self>
pub fn builder() -> RuntimeLoaderBuilder
pub async fn get_runtime( &self, language: Language, version: &str, ) -> Result<Runtime>
pub async fn download_runtime( &self, language: Language, version: &str, ) -> Result<Runtime>
pub async fn list_available(&self) -> Result<GlobalManifest>
pub async fn get_latest_version(&self, language: Language) -> Result<String>
pub fn clear_cache(&self, language: Language, version: &str) -> Result<()>
pub fn clear_all_cache(&self) -> Result<()>
pub fn list_cached(&self) -> Result<Vec<Runtime>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeLoader
impl !RefUnwindSafe for RuntimeLoader
impl Send for RuntimeLoader
impl Sync for RuntimeLoader
impl Unpin for RuntimeLoader
impl !UnwindSafe for RuntimeLoader
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