Trait arangors::client::ClientExt [−][src]
pub trait ClientExt: Sync + Clone { fn new<U: Into<Option<HeaderMap>>>(headers: U) -> Result<Self, ClientError>
where
Self: Sized; fn clone_with_transaction(
&self,
transaction_id: String
) -> Result<Self, ClientError>
where
Self: Sized; #[must_use] fn request<'life0, 'async_trait>(
&'life0 self,
request: Request<String>
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
where
Self: Sized,
'life0: 'async_trait,
Self: 'async_trait; #[must_use] fn get<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, { ... } #[must_use] fn post<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, { ... } #[must_use] fn put<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, { ... } #[must_use] fn delete<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, { ... } #[must_use] fn patch<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, { ... } #[must_use] fn connect<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, { ... } #[must_use] fn head<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, { ... } #[must_use] fn options<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, { ... } #[must_use] fn trace<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>>
where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait, { ... } }
Required methods
fn new<U: Into<Option<HeaderMap>>>(headers: U) -> Result<Self, ClientError> where
Self: Sized,
[src]
Self: Sized,
fn clone_with_transaction(
&self,
transaction_id: String
) -> Result<Self, ClientError> where
Self: Sized,
[src]
&self,
transaction_id: String
) -> Result<Self, ClientError> where
Self: Sized,
#[must_use]fn request<'life0, 'async_trait>(
&'life0 self,
request: Request<String>
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn request<'life0, 'async_trait>(&'life0 self,
request: Request<String>
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
'life0: 'async_trait,
Self: 'async_trait,
Provided methods
#[must_use]fn get<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn get<'life0, 'async_trait, T>(&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn post<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn post<'life0, 'async_trait, T>(&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn put<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn put<'life0, 'async_trait, T>(&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn delete<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn delete<'life0, 'async_trait, T>(&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn patch<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn patch<'life0, 'async_trait, T>(&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn connect<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn connect<'life0, 'async_trait, T>(&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn head<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn head<'life0, 'async_trait, T>(&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn options<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn options<'life0, 'async_trait, T>(&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
#[must_use]fn trace<'life0, 'async_trait, T>(
&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn trace<'life0, 'async_trait, T>(&'life0 self,
url: Url,
text: T
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
Self: Sized,
T: Into<String> + Send,
T: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
Implementors
impl ClientExt for ReqwestClient
[src]
impl ClientExt for ReqwestClient
[src]fn new<U: Into<Option<HeaderMap>>>(headers: U) -> Result<Self, ClientError>
[src]
fn clone_with_transaction(
&self,
transaction_id: String
) -> Result<Self, ClientError>
[src]
&self,
transaction_id: String
) -> Result<Self, ClientError>
fn request<'life0, 'async_trait>(
&'life0 self,
request: Request<String>
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: Request<String>
) -> Pin<Box<dyn Future<Output = Result<Response<String>, ClientError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,