Struct http_api_isahc_client::IsahcClient [−][src]
pub struct IsahcClient {
pub http_client: IsahcHttpClient,
pub body_buf_default_capacity: usize,
}
Fields
http_client: IsahcHttpClient
body_buf_default_capacity: usize
Implementations
Trait Implementations
type RespondError = IsahcError
fn respond<'life0, 'async_trait>(
&'life0 self,
request: Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Self::RespondError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn respond_endpoint<'life0, 'life1, 'async_trait, EP>(
&'life0 self,
endpoint: &'life1 EP
) -> Pin<Box<dyn Future<Output = Result<<EP as Endpoint>::ParseResponseOutput, ClientRespondEndpointError<Self::RespondError, <EP as Endpoint>::RenderRequestError, <EP as Endpoint>::ParseResponseError>>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
EP: Endpoint + Send + Sync + 'async_trait,
Self: 'async_trait + Sync,
fn respond_endpoint_with_callback<'life0, 'life1, 'async_trait, EP, PreRCB, PostRCB>(
&'life0 self,
endpoint: &'life1 EP,
pre_request_callback: PreRCB,
post_request_callback: PostRCB
) -> Pin<Box<dyn Future<Output = Result<<EP as Endpoint>::ParseResponseOutput, ClientRespondEndpointError<Self::RespondError, <EP as Endpoint>::RenderRequestError, <EP as Endpoint>::ParseResponseError>>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
EP: Endpoint + Send + Sync + 'async_trait,
PreRCB: FnMut(Request<Vec<u8, Global>>) -> Request<Vec<u8, Global>> + Send + 'async_trait,
PostRCB: FnMut(&Response<Vec<u8, Global>>) + Send + 'async_trait,
Self: 'async_trait + Sync,
fn respond_dyn_endpoint<'life0, 'life1, 'async_trait, RRE, PRO, PRE>(
&'life0 self,
endpoint: &'life1 (dyn Endpoint<ParseResponseError = PRE, RenderRequestError = RRE, ParseResponseOutput = PRO> + Send + Sync + 'life1)
) -> Pin<Box<dyn Future<Output = Result<PRO, ClientRespondEndpointError<Self::RespondError, RRE, PRE>>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
RRE: 'static + Error + Send + Sync + 'async_trait,
PRE: 'static + Error + Send + Sync + 'async_trait,
PRO: 'async_trait,
Self: 'async_trait + Sync,
fn respond_dyn_endpoint_with_callback<'life0, 'life1, 'async_trait, RRE, PRO, PRE, PreRCB, PostRCB>(
&'life0 self,
endpoint: &'life1 (dyn Endpoint<ParseResponseError = PRE, RenderRequestError = RRE, ParseResponseOutput = PRO> + Send + Sync + 'life1),
pre_request_callback: PreRCB,
post_request_callback: PostRCB
) -> Pin<Box<dyn Future<Output = Result<PRO, ClientRespondEndpointError<Self::RespondError, RRE, PRE>>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
RRE: 'static + Error + Send + Sync + 'async_trait,
PRE: 'static + Error + Send + Sync + 'async_trait,
PreRCB: FnMut(Request<Vec<u8, Global>>) -> Request<Vec<u8, Global>> + Send + 'async_trait,
PostRCB: FnMut(&Response<Vec<u8, Global>>) + Send + 'async_trait,
PRO: 'async_trait,
Self: 'async_trait + Sync,
fn sleep<'life0, 'async_trait>(
&'life0 self,
dur: Duration
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn respond_endpoint_until_done<'life0, 'life1, 'async_trait, EP>(
&'life0 self,
endpoint: &'life1 EP
) -> Pin<Box<dyn Future<Output = Result<<EP as RetryableEndpoint>::ParseResponseOutput, RetryableClientRespondEndpointUntilDoneError<Self::RespondError, <EP as RetryableEndpoint>::RenderRequestError, <EP as RetryableEndpoint>::ParseResponseError>>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
EP: RetryableEndpoint + Send + Sync + 'async_trait,
Self: 'async_trait + Sync,
fn respond_endpoint_until_done_with_callback<'life0, 'life1, 'async_trait, EP, PreRCB, PostRCB>(
&'life0 self,
endpoint: &'life1 EP,
pre_request_callback: PreRCB,
post_request_callback: PostRCB
) -> Pin<Box<dyn Future<Output = Result<<EP as RetryableEndpoint>::ParseResponseOutput, RetryableClientRespondEndpointUntilDoneError<Self::RespondError, <EP as RetryableEndpoint>::RenderRequestError, <EP as RetryableEndpoint>::ParseResponseError>>> + Send + 'async_trait, Global>> where
'life0: 'async_trait,
'life1: 'async_trait,
EP: RetryableEndpoint + Send + Sync + 'async_trait,
PreRCB: FnMut(Request<Vec<u8, Global>>, Option<&RetryableEndpointRetry<<EP as RetryableEndpoint>::RetryReason>>) -> Request<Vec<u8, Global>> + Send + 'async_trait,
PostRCB: FnMut(&Response<Vec<u8, Global>>, Option<&RetryableEndpointRetry<<EP as RetryableEndpoint>::RetryReason>>) + Send + 'async_trait,
Self: 'async_trait + Sync,
Auto Trait Implementations
impl !RefUnwindSafe for IsahcClient
impl Send for IsahcClient
impl Sync for IsahcClient
impl Unpin for IsahcClient
impl !UnwindSafe for IsahcClient
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more