pub struct SimpleHttpClient<C: Config> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<C: Clone + Config> Clone for SimpleHttpClient<C>
impl<C: Clone + Config> Clone for SimpleHttpClient<C>
Source§fn clone(&self) -> SimpleHttpClient<C>
fn clone(&self) -> SimpleHttpClient<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<C: Config> HttpClient for SimpleHttpClient<C>
impl<C: Config> HttpClient for SimpleHttpClient<C>
fn post<'life0, 'life1, 'async_trait, I, O>(
&'life0 self,
path: &'life1 str,
request: I,
) -> Pin<Box<dyn Future<Output = Result<O, Error>> + Send + 'async_trait>>where
I: 'async_trait + Serialize + Send,
O: 'async_trait + DeserializeOwned,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn post_stream<'life0, 'life1, 'async_trait, I, O>(
&'life0 self,
path: &'life1 str,
request: I,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<O, Error>> + Send>>, Error>> + Send + 'async_trait>>where
I: 'async_trait + Serialize + Send,
O: 'async_trait + DeserializeOwned + Send + 'static,
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<C> Freeze for SimpleHttpClient<C>where
C: Freeze,
impl<C> !RefUnwindSafe for SimpleHttpClient<C>
impl<C> Send for SimpleHttpClient<C>
impl<C> Sync for SimpleHttpClient<C>
impl<C> Unpin for SimpleHttpClient<C>where
C: Unpin,
impl<C> !UnwindSafe for SimpleHttpClient<C>
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