pub struct PathResolver;Expand description
A no-network “fetcher” for local path dependencies: it only validates
that the path exists and returns it unchanged.
Trait Implementations§
Source§impl DependencyFetcher for PathResolver
impl DependencyFetcher for PathResolver
Source§fn fetch(
&self,
name: &str,
dep: &Dependency,
_force: bool,
) -> Result<FetchOutcome, FetchError>
fn fetch( &self, name: &str, dep: &Dependency, _force: bool, ) -> Result<FetchOutcome, FetchError>
Materialize
dep (named name) into the cache and return its on-disk
location. force re-fetches/updates an existing checkout.Auto Trait Implementations§
impl Freeze for PathResolver
impl RefUnwindSafe for PathResolver
impl Send for PathResolver
impl Sync for PathResolver
impl Unpin for PathResolver
impl UnsafeUnpin for PathResolver
impl UnwindSafe for PathResolver
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