pub struct GeDownloader { /* private fields */ }
Expand description
Default implementation for the GeDownload
trait.
Implementations§
Trait Implementations§
Source§impl Default for GeDownloader
impl Default for GeDownloader
Source§impl GeDownload for GeDownloader
impl GeDownload for GeDownloader
Source§fn fetch_release(
&self,
tag: Option<String>,
kind: TagKind,
) -> Result<GeRelease, GithubError>
fn fetch_release( &self, tag: Option<String>, kind: TagKind, ) -> Result<GeRelease, GithubError>
Get release information for a GitHub release.
This method fetches information from a GE version GitHub release via the GitHub API.
If the tag
is a None
this method will fetch the latest release.
The relevant APIs for this method are:
- https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/tags
- https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/latest
- https://api.github.com/repos/GloriousEggroll/wine-ge-custom/releases/tags
- https://api.github.com/repos/GloriousEggroll/wine-ge-custom/tags
§Errors
This method returns an error in the following situations:
- The GitHub API returned no tags
- The GitHub API returned a not OK HTTP response
- A release was found but that release has no assets
- Reqwest could not fetch the resource from GitHub
- The API response could not be converted into a struct with serde
Source§fn download_release_assets(
&self,
request: DownloadRequest,
) -> Result<DownloadedAssets, GithubError>
fn download_release_assets( &self, request: DownloadRequest, ) -> Result<DownloadedAssets, GithubError>
Download the assets of a GE version release.
§Errors
This method will return an error in the following situations:
- The GitHub API returned no tags
- The GitHub API returned a not OK HTTP response
- A release was found but that release has no assets
- Reqwest could not fetch the resource from GitHub
- The API response could not be converted into a struct with serde
Auto Trait Implementations§
impl Freeze for GeDownloader
impl !RefUnwindSafe for GeDownloader
impl !Send for GeDownloader
impl !Sync for GeDownloader
impl Unpin for GeDownloader
impl !UnwindSafe for GeDownloader
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