pub struct RegistryStore { /* private fields */ }Implementations§
Source§impl RegistryStore
impl RegistryStore
pub fn new(root: PathBuf) -> Self
pub fn default_root() -> Result<PathBuf, RegistryError>
pub fn root(&self) -> &Path
pub fn path(&self) -> PathBuf
pub fn load(&self) -> Result<ProjectRegistry, RegistryError>
pub fn add( &self, expected_revision: u64, project: Project, ) -> Result<ProjectRegistry, RegistryError>
pub fn remove( &self, expected_revision: u64, name: &str, ) -> Result<ProjectRegistry, RegistryError>
pub fn merge( &self, expected_revision: u64, projects: Vec<Project>, ) -> Result<ProjectRegistry, RegistryError>
pub fn select( &self, names: &[String], filter: Option<&str>, ) -> Result<Vec<Project>, RegistryError>
Trait Implementations§
Source§impl Clone for RegistryStore
impl Clone for RegistryStore
Source§fn clone(&self) -> RegistryStore
fn clone(&self) -> RegistryStore
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 RegistryStore
impl RefUnwindSafe for RegistryStore
impl Send for RegistryStore
impl Sync for RegistryStore
impl Unpin for RegistryStore
impl UnsafeUnpin for RegistryStore
impl UnwindSafe for RegistryStore
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