Struct mas_http::ClientLayer
source · pub struct ClientLayer { /* private fields */ }
Implementations§
source§impl ClientLayer
impl ClientLayer
pub fn new() -> Self
pub fn with_category(self, category: &'static str) -> Self
Trait Implementations§
source§impl Clone for ClientLayer
impl Clone for ClientLayer
source§fn clone(&self) -> ClientLayer
fn clone(&self) -> ClientLayer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ClientLayer
impl Debug for ClientLayer
source§impl Default for ClientLayer
impl Default for ClientLayer
source§impl<S> Layer<S> for ClientLayerwhere
S: Clone,
impl<S> Layer<S> for ClientLayerwhere
S: Clone,
§type Service = SetRequestHeader<DurationRecorderService<InFlightCounterService<ConcurrencyLimit<FollowRedirect<TraceService<TraceContextService<S>, MakeSpanForRequest, EnrichSpanOnResponse, EnrichSpanOnError>>>, OnRequestLabels>, OnRequestLabels, OnResponseLabels, KeyValue>, HeaderValue>
type Service = SetRequestHeader<DurationRecorderService<InFlightCounterService<ConcurrencyLimit<FollowRedirect<TraceService<TraceContextService<S>, MakeSpanForRequest, EnrichSpanOnResponse, EnrichSpanOnError>>>, OnRequestLabels>, OnRequestLabels, OnResponseLabels, KeyValue>, HeaderValue>
The wrapped service
Auto Trait Implementations§
impl !Freeze for ClientLayer
impl !RefUnwindSafe for ClientLayer
impl Send for ClientLayer
impl Sync for ClientLayer
impl Unpin for ClientLayer
impl !UnwindSafe for ClientLayer
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)