Struct anterofit::Adapter [−][src]
pub struct Adapter<S = NoSerializer, D = FromStrDeserializer> { /* fields omitted */ }
The starting point of all Anterofit requests.
Use builder()
to start constructing an instance.
Methods
impl Adapter<NoSerializer, FromStrDeserializer>
[src]
impl Adapter<NoSerializer, FromStrDeserializer>
pub fn builder(
) -> AdapterBuilder<NoSerializer, FromStrDeserializer, DefaultExecutor, NoIntercept>
[src]
pub fn builder(
) -> AdapterBuilder<NoSerializer, FromStrDeserializer, DefaultExecutor, NoIntercept>
Start building an impl of Adapter
using the default inner types.
impl<S, D> Adapter<S, D>
[src]
impl<S, D> Adapter<S, D>
pub fn interceptor_mut(&mut self) -> InterceptorMut
[src]
pub fn interceptor_mut(&mut self) -> InterceptorMut
Modify this adaptor's interceptor.
Note
Any existing service trait objects and copies of this adapter will be unaffected by this change.
impl<S, D> Adapter<S, D> where
S: Serializer,
D: Deserializer,
[src]
impl<S, D> Adapter<S, D> where
S: Serializer,
D: Deserializer,
pub fn arc_service<Serv: ?Sized>(&self) -> Arc<Serv> where
Serv: UnsizeService,
[src]
pub fn arc_service<Serv: ?Sized>(&self) -> Arc<Serv> where
Serv: UnsizeService,
Get a service trait object from an existing shared allocation.
Requires that the service implement UnsizeService
.
Trait Implementations
impl<S: Debug, D: Debug> Debug for Adapter<S, D>
[src]
impl<S: Debug, D: Debug> Debug for Adapter<S, D>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S, D> Clone for Adapter<S, D>
[src]
impl<S, D> Clone for Adapter<S, D>
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<S, D> AbsAdapter for Adapter<S, D> where
S: Serializer,
D: Deserializer,
[src]
impl<S, D> AbsAdapter for Adapter<S, D> where
S: Serializer,
D: Deserializer,