pub trait PackageManager {
// Required methods
fn default_path() -> &'static str;
fn read_package<'life0, 'async_trait, T, V>(
&'life0 self,
crate_path: T,
) -> Pin<Box<dyn Future<Output = Result<Vec<Package<V>>>> + Send + 'async_trait>>
where T: 'async_trait + AsRef<Path> + Send + Sync,
V: 'async_trait + Versioned + Send + Sync + 'static,
Self: 'async_trait,
'life0: 'async_trait;
fn check_version<'life0, 'life1, 'async_trait, V>(
&'life0 self,
package: &'life1 Package<V>,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where V: 'async_trait + Versioned + Send + Sync + 'static,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn run_build<'life0, 'async_trait, T>(
&'life0 self,
crate_path: T,
build_args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where T: 'async_trait + AsRef<Path> + Send + Sync,
Self: 'async_trait,
'life0: 'async_trait;
fn run_publish<'life0, 'async_trait, T>(
&'life0 self,
crate_path: T,
publish_args: Vec<String>,
dry_run: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where T: 'async_trait + AsRef<Path> + Send + Sync,
Self: 'async_trait,
'life0: 'async_trait;
fn apply_version<'life0, 'life1, 'async_trait, T>(
&'life0 self,
crate_path: T,
version: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where T: 'async_trait + AsRef<Path> + Send + Sync,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn apply_dependency_version<'life0, 'life1, 'life2, 'async_trait, T>(
&'life0 self,
crate_path: T,
name: &'life1 str,
version: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where T: 'async_trait + AsRef<Path> + Send + Sync,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Required Methods§
fn default_path() -> &'static str
fn read_package<'life0, 'async_trait, T, V>( &'life0 self, crate_path: T, ) -> Pin<Box<dyn Future<Output = Result<Vec<Package<V>>>> + Send + 'async_trait>>
fn check_version<'life0, 'life1, 'async_trait, V>( &'life0 self, package: &'life1 Package<V>, ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
fn run_build<'life0, 'async_trait, T>( &'life0 self, crate_path: T, build_args: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn run_publish<'life0, 'async_trait, T>( &'life0 self, crate_path: T, publish_args: Vec<String>, dry_run: bool, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn apply_version<'life0, 'life1, 'async_trait, T>( &'life0 self, crate_path: T, version: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn apply_dependency_version<'life0, 'life1, 'life2, 'async_trait, T>( &'life0 self, crate_path: T, name: &'life1 str, version: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.