pub(crate) struct DealerState {
pub(crate) dealer_home: PathBuf,
}Fields§
§dealer_home: PathBufImplementations§
Source§impl DealerState
impl DealerState
pub(crate) fn from_process_env(workspace_root: &Path) -> Self
pub(crate) fn from_home(dealer_home: PathBuf) -> Self
pub(crate) fn config_dir(&self) -> PathBuf
pub(crate) fn cache_dir(&self) -> PathBuf
pub(crate) fn xtazy_dir(&self) -> PathBuf
pub(crate) fn rust_dir(&self) -> PathBuf
pub(crate) fn active_toolchain_file(&self) -> PathBuf
pub(crate) fn active_rust_backend_file(&self) -> PathBuf
pub(crate) fn auto_update_file(&self) -> PathBuf
pub(crate) fn ensure_base_dirs(&self) -> Result<(), DealerError>
pub(crate) fn active_version(&self) -> String
pub(crate) fn set_active_version( &self, version: &str, ) -> Result<(), DealerError>
pub(crate) fn active_rust_backend(&self) -> String
pub(crate) fn auto_update_enabled(&self) -> bool
pub(crate) fn set_auto_update_enabled( &self, enabled: bool, ) -> Result<(), DealerError>
pub(crate) fn installed_toolchains( &self, ) -> Result<Vec<InstalledToolchain>, DealerError>
pub(crate) fn toolchain_dir(&self, version: &str) -> PathBuf
pub(crate) fn rust_backend_dir(&self, backend: &str) -> PathBuf
pub(crate) fn has_complete_toolchain(&self, version: &str) -> bool
pub(crate) fn remove_toolchain(&self, version: &str) -> Result<(), DealerError>
Trait Implementations§
Source§impl Clone for DealerState
impl Clone for DealerState
Source§fn clone(&self) -> DealerState
fn clone(&self) -> DealerState
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 moreAuto Trait Implementations§
impl Freeze for DealerState
impl RefUnwindSafe for DealerState
impl Send for DealerState
impl Sync for DealerState
impl Unpin for DealerState
impl UnsafeUnpin for DealerState
impl UnwindSafe for DealerState
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