pub trait ReleasesProvider: Send + Sync {
// Required methods
fn release_by_tag<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
tag: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Release>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn create_release<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
release: &'life2 NewRelease,
) -> Pin<Box<dyn Future<Output = Result<Release>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn upload_asset<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
release_id: ReleaseId,
name: &'life2 str,
label: Option<&'life3 str>,
upload: AssetUpload,
) -> Pin<Box<dyn Future<Output = Result<ReleaseAsset>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn download_asset<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
asset_id: AssetId,
) -> Pin<Box<dyn Future<Output = Result<AssetStream>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
fn release_by_tag<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
tag: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Release>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn create_release<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
release: &'life2 NewRelease,
) -> Pin<Box<dyn Future<Output = Result<Release>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn upload_asset<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
release_id: ReleaseId,
name: &'life2 str,
label: Option<&'life3 str>,
upload: AssetUpload,
) -> Pin<Box<dyn Future<Output = Result<ReleaseAsset>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Sourcefn download_asset<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
asset_id: AssetId,
) -> Pin<Box<dyn Future<Output = Result<AssetStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn download_asset<'life0, 'life1, 'async_trait>(
&'life0 self,
repository: &'life1 Repository,
asset_id: AssetId,
) -> Pin<Box<dyn Future<Output = Result<AssetStream>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Opens a chunk stream without buffering the complete asset.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".