pub struct RepositoryManager<'a> { /* private fields */ }
Implementations§
Source§impl<'a> RepositoryManager<'a>
impl<'a> RepositoryManager<'a>
pub fn add_repo( &mut self, repo_name: impl AsRef<str>, backend: Box<dyn Backend>, ) -> SomaResult<()>
pub fn remove_repo(&mut self, repo_name: impl AsRef<str>) -> SomaResult<()>
pub fn get_repo(&self, repo_name: impl AsRef<str>) -> SomaResult<Repository<'_>>
pub fn search_prob(&self, query: &str) -> SomaResult<Problem>
pub fn list_repo(&'a self) -> impl Iterator<Item = Repository<'a>>
pub fn list_prob(&self) -> impl Iterator<Item = Problem> + '_
pub fn repo_exists(&self, repo_name: impl AsRef<str>) -> bool
Methods from Deref<Target = Registration<'a, Self>>§
Trait Implementations§
Source§impl<'a> DirectoryManager<'a> for RepositoryManager<'a>
impl<'a> DirectoryManager<'a> for RepositoryManager<'a>
const DIR: &'static str = "repositories"
fn new(registration: Registration<'a, Self>) -> SomaResult<Self>
Source§impl<'a> Drop for RepositoryManager<'a>
impl<'a> Drop for RepositoryManager<'a>
Source§impl<'a> Deref for RepositoryManager<'a>
impl<'a> Deref for RepositoryManager<'a>
Source§type Target = Registration<'a, RepositoryManager<'a>>
type Target = Registration<'a, RepositoryManager<'a>>
The resulting type after dereferencing.
Auto Trait Implementations§
impl<'a> Freeze for RepositoryManager<'a>
impl<'a> !RefUnwindSafe for RepositoryManager<'a>
impl<'a> !Send for RepositoryManager<'a>
impl<'a> !Sync for RepositoryManager<'a>
impl<'a> Unpin for RepositoryManager<'a>
impl<'a> !UnwindSafe for RepositoryManager<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more