pub struct DirectAdapter { /* private fields */ }Implementations§
Source§impl DirectAdapter
impl DirectAdapter
pub fn new(client: HttpClient) -> Self
pub async fn download_asset<F>( &self, asset: &Asset, destination_path: &Path, dl_callback: &mut Option<F>, ) -> Result<()>
pub async fn get_release_by_tag( &self, _slug: &str, _tag: &str, ) -> Result<Release>
pub async fn get_latest_release(&self, slug: &str) -> Result<Release>
pub async fn get_latest_release_if_modified_since( &self, slug: &str, last_upgraded: Option<DateTime<Utc>>, ) -> Result<Option<Release>>
pub async fn get_releases( &self, slug: &str, _per_page: Option<u32>, _max_total: Option<u32>, ) -> Result<Vec<Release>>
Trait Implementations§
Source§impl Clone for DirectAdapter
impl Clone for DirectAdapter
Source§fn clone(&self) -> DirectAdapter
fn clone(&self) -> DirectAdapter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DirectAdapter
impl !RefUnwindSafe for DirectAdapter
impl Send for DirectAdapter
impl Sync for DirectAdapter
impl Unpin for DirectAdapter
impl UnsafeUnpin for DirectAdapter
impl !UnwindSafe for DirectAdapter
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