pub trait PackageLoader: Send {
// Required methods
fn list_all_versions<'life0, 'life1, 'async_trait>(
&'life0 self,
package: &'life1 PackageRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<VersionInfo>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_release<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
package: &'life1 PackageRef,
version: &'life2 Version,
) -> Pin<Box<dyn Future<Output = Result<Release, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn stream_content_unvalidated<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
package: &'life1 PackageRef,
release: &'life2 Release,
) -> Pin<Box<dyn Future<Output = Result<ContentStream, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
// Provided methods
fn list_matching_versions<'life0, 'life1, 'async_trait>(
&'life0 self,
package: &'life1 PackageRef,
predicate: VersionReq,
sort: VersionSort,
) -> Pin<Box<dyn Future<Output = Result<Vec<VersionInfo>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn stream_content<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
package: &'life1 PackageRef,
release: &'life2 Release,
) -> Pin<Box<dyn Future<Output = Result<ContentStream, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}Required Methods§
fn list_all_versions<'life0, 'life1, 'async_trait>(
&'life0 self,
package: &'life1 PackageRef,
) -> Pin<Box<dyn Future<Output = Result<Vec<VersionInfo>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_release<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
package: &'life1 PackageRef,
version: &'life2 Version,
) -> Pin<Box<dyn Future<Output = Result<Release, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn stream_content_unvalidated<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
package: &'life1 PackageRef,
release: &'life2 Release,
) -> Pin<Box<dyn Future<Output = Result<ContentStream, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Provided Methods§
fn list_matching_versions<'life0, 'life1, 'async_trait>(
&'life0 self,
package: &'life1 PackageRef,
predicate: VersionReq,
sort: VersionSort,
) -> Pin<Box<dyn Future<Output = Result<Vec<VersionInfo>, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn stream_content<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
package: &'life1 PackageRef,
release: &'life2 Release,
) -> Pin<Box<dyn Future<Output = Result<ContentStream, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".