pub struct DiscoveryService { /* private fields */ }Expand description
Discovers repo manifests and builds snapshots.
Implementations§
Source§impl DiscoveryService
impl DiscoveryService
Sourcepub fn new(
locator: Arc<dyn RepoLocator>,
filesystem: Arc<dyn RepoFileSystem>,
parser: Arc<dyn ManifestParser>,
graph_builder: Arc<dyn GraphBuilder>,
) -> Self
pub fn new( locator: Arc<dyn RepoLocator>, filesystem: Arc<dyn RepoFileSystem>, parser: Arc<dyn ManifestParser>, graph_builder: Arc<dyn GraphBuilder>, ) -> Self
Creates a discovery service from explicit adapters.
Sourcepub fn discover(
&self,
request: &DiscoverRequest,
) -> Result<RepoSnapshot, RepoctlError>
pub fn discover( &self, request: &DiscoverRequest, ) -> Result<RepoSnapshot, RepoctlError>
Discovers a repository and returns a validated snapshot.
Trait Implementations§
Source§impl Clone for DiscoveryService
impl Clone for DiscoveryService
Source§fn clone(&self) -> DiscoveryService
fn clone(&self) -> DiscoveryService
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 moreSource§impl Debug for DiscoveryService
impl Debug for DiscoveryService
Auto Trait Implementations§
impl !RefUnwindSafe for DiscoveryService
impl !UnwindSafe for DiscoveryService
impl Freeze for DiscoveryService
impl Send for DiscoveryService
impl Sync for DiscoveryService
impl Unpin for DiscoveryService
impl UnsafeUnpin for DiscoveryService
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