pub struct GitHubClient { /* private fields */ }Implementations§
Source§impl GitHubClient
impl GitHubClient
pub fn new(config: Config) -> Self
pub fn cache_status_message(&self) -> String
pub fn is_cache_stale(&self) -> bool
Trait Implementations§
Source§impl DownloadClient for GitHubClient
impl DownloadClient for GitHubClient
Source§async fn godot_releases(
&self,
force_refresh: bool,
partial_fetch: bool,
) -> Result<Vec<GitHubRelease>>
async fn godot_releases( &self, force_refresh: bool, partial_fetch: bool, ) -> Result<Vec<GitHubRelease>>
Returns a sorted list of all available Godot releases.
If force_refresh is true, fetches the latest list from GitHub.
Otherwise, uses a cached list if it exists and was modified less than 6 months ago.
If partial_fetch is true, fetches only the latest 100 releases (1 page) from GitHub.
async fn download_asset(&self, asset: &GitHubAsset, path: &Path) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for GitHubClient
impl !UnwindSafe for GitHubClient
impl Freeze for GitHubClient
impl Send for GitHubClient
impl Sync for GitHubClient
impl Unpin for GitHubClient
impl UnsafeUnpin for GitHubClient
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