pub struct DependencyResolverImpl { /* private fields */ }Expand description
Implementation of the dependency resolver.
Implementations§
Trait Implementations§
Source§impl Default for DependencyResolverImpl
impl Default for DependencyResolverImpl
Source§impl DependencyResolver for DependencyResolverImpl
impl DependencyResolver for DependencyResolverImpl
Source§fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
requirements: &'life1 [Requirement],
) -> Pin<Box<dyn Future<Output = Result<ResolvedContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
requirements: &'life1 [Requirement],
) -> Pin<Box<dyn Future<Output = Result<ResolvedContext>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve a list of package requirements.
Source§fn can_resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
requirements: &'life1 [Requirement],
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn can_resolve<'life0, 'life1, 'async_trait>(
&'life0 self,
requirements: &'life1 [Requirement],
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check if requirements can be satisfied.
Source§fn find_conflicts<'life0, 'life1, 'async_trait>(
&'life0 self,
requirements: &'life1 [Requirement],
) -> Pin<Box<dyn Future<Output = Result<Vec<DependencyConflict>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_conflicts<'life0, 'life1, 'async_trait>(
&'life0 self,
requirements: &'life1 [Requirement],
) -> Pin<Box<dyn Future<Output = Result<Vec<DependencyConflict>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Find conflicts in requirements.
Source§fn get_latest_version<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
constraint: &'life2 VersionConstraint,
) -> Pin<Box<dyn Future<Output = Result<Option<Version>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get_latest_version<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
constraint: &'life2 VersionConstraint,
) -> Pin<Box<dyn Future<Output = Result<Option<Version>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Get latest version of a package that satisfies constraints.
Auto Trait Implementations§
impl Freeze for DependencyResolverImpl
impl RefUnwindSafe for DependencyResolverImpl
impl Send for DependencyResolverImpl
impl Sync for DependencyResolverImpl
impl Unpin for DependencyResolverImpl
impl UnsafeUnpin for DependencyResolverImpl
impl UnwindSafe for DependencyResolverImpl
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