pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new() -> Result<Self, Error>
Sourcepub async fn archive(
&self,
page: u8,
progress: impl FnMut(usize, Option<u64>),
) -> Result<ArchivePage, Error>
pub async fn archive( &self, page: u8, progress: impl FnMut(usize, Option<u64>), ) -> Result<ArchivePage, Error>
List one bounded page of fifty public archive problems
Sourcepub async fn recent(
&self,
progress: impl FnMut(usize, Option<u64>),
) -> Result<RecentProblems, Error>
pub async fn recent( &self, progress: impl FnMut(usize, Option<u64>), ) -> Result<RecentProblems, Error>
List the ten most recently published public problems
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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