Struct anterofit::Adapter
[−]
[src]
pub struct Adapter<E, I, S, D> { /* fields omitted */ }
The starting point of all Anterofit requests.
Use builder()
to start constructing an instance.
Methods
impl Adapter<DefaultExecutor, NoIntercept, NoSerializer, NoDeserializer>
[src]
fn builder()
-> AdapterBuilder<DefaultExecutor, NoIntercept, NoSerializer, NoDeserializer>
-> AdapterBuilder<DefaultExecutor, NoIntercept, NoSerializer, NoDeserializer>
Start building an impl of Adapter
using the default inner types.
Trait Implementations
impl<E: Debug, I: Debug, S: Debug, D: Debug> Debug for Adapter<E, I, S, D>
[src]
impl<E: Clone, I, S, D> Clone for Adapter<E, I, S, D>
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<E, I, S, D> AbsAdapter for Adapter<E, I, S, D> where E: Executor, I: Interceptor, S: Serializer, D: Deserializer
[src]
type Serializer = S
The adapter's serializer type.
type Deserializer = D
The adapter's deserializer type.
fn serializer(&self) -> &S
Get a reference to the adapter's Serializer
.
fn deserializer(&self) -> &D
Get a reference to the adapter's Deserializer
.
impl<E, I, S, D> ObjSafeAdapter for Adapter<E, I, S, D> where E: Executor, I: Interceptor, S: Serializer, D: Deserializer
[src]
fn execute(&self, exec: Box<ExecBox>)
Execute exec
on this adapter's executor.
fn intercept(&self, head: &mut RequestHead)
Pass head
to this adapter's interceptor for modification.
fn request_builder(&self, head: &RequestHead) -> Result<NetRequestBuilder>
Initialize a hyper::client::RequestBuilder
from head
.