pub struct WebDependency { /* private fields */ }Expand description
A dependency that can be found on the web. This is an absolute path from a host
Implementations§
Source§impl WebDependency
impl WebDependency
Trait Implementations§
Source§impl Debug for WebDependency
impl Debug for WebDependency
Source§impl Dependency for WebDependency
impl Dependency for WebDependency
Source§fn dep_type(&self) -> DependencyType
fn dep_type(&self) -> DependencyType
The type of the dependency
Source§fn try_resolve(
&self,
registry: &dyn Registry,
cache_path: &Path,
) -> Result<ResolvedDependency, AcquisitionError>
fn try_resolve( &self, registry: &dyn Registry, cache_path: &Path, ) -> Result<ResolvedDependency, AcquisitionError>
Try to resolve a dependency in a registry. The
cache_path is somewhere to write files into
if necessary.Source§impl GetBuildable for WebDependency
impl GetBuildable for WebDependency
Source§fn as_buildable(&self) -> BuildableObject
fn as_buildable(&self) -> BuildableObject
Returns a dependency which contains the tasks which build this object.
Auto Trait Implementations§
impl Freeze for WebDependency
impl RefUnwindSafe for WebDependency
impl Send for WebDependency
impl Sync for WebDependency
impl Unpin for WebDependency
impl UnwindSafe for WebDependency
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> InstanceOf for T
impl<T> InstanceOf for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<D> IntoDependency for Dwhere
D: Dependency,
impl<D> IntoDependency for Dwhere
D: Dependency,
type IntoDep = D
Source§fn into_dependency(self) -> <D as IntoDependency>::IntoDep
fn into_dependency(self) -> <D as IntoDependency>::IntoDep
Turn this type into a dependency
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