pub struct Registry { /* private fields */ }Implementations§
Source§impl Registry
impl Registry
pub fn new(paths: &XdgPaths) -> Self
Sourcepub fn with_local(paths: &XdgPaths, project_root: &Path) -> Self
pub fn with_local(paths: &XdgPaths, project_root: &Path) -> Self
Create a registry with local project support
pub fn pack_dir(&self, tool: &str, pack: &Pack) -> PathBuf
pub fn install_pack(&self, tool: &str, pack: &Pack) -> Result<PathBuf>
pub fn remove_pack(&self, tool: &str, pack: &Pack) -> Result<()>
Sourcepub fn list_packs(
&self,
tool: Option<&str>,
scope: Option<InstallScope>,
) -> Result<Vec<Pack>>
pub fn list_packs( &self, tool: Option<&str>, scope: Option<InstallScope>, ) -> Result<Vec<Pack>>
List packs for a given scope, or all scopes if scope is None
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnsafeUnpin for Registry
impl UnwindSafe for Registry
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