pub struct Client {
pub id: u64,
/* private fields */
}
Expand description
Fields§
§id: u64
Implementations§
Source§impl Client
impl Client
Sourcepub async fn request(&self, req: Request) -> Result<Response, MetaResponse>
pub async fn request(&self, req: Request) -> Result<Response, MetaResponse>
this function requires a Request
and hyper::Client
to return the Response
Poll the Request
, and asynchronously aggregate data from
server.
Sourcepub async fn join_all<I>(
i: I,
) -> Vec<<<I as IntoIterator>::Item as Future>::Output>
pub async fn join_all<I>( i: I, ) -> Vec<<<I as IntoIterator>::Item as Future>::Output>
A wrapper of futures’s function block_on
blocking the current thread and execute the future
NOTE that avoid using this if not necessary spawn a task or use join_all instead
A wrapper of futures’s function join_all
execute multiple Request
for common use.
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe 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