pub struct ClientBuilder<Svc> { /* private fields */ }
Available on crate feature
client
only.Implementations§
source§impl<Svc> ClientBuilder<Svc>
impl<Svc> ClientBuilder<Svc>
sourcepub fn new(service: Svc, default_namespace: impl Into<String>) -> Self
pub fn new(service: Svc, default_namespace: impl Into<String>) -> Self
Construct a ClientBuilder
from scratch with a fully custom Service
stack.
This method is only intended for advanced use cases, most users will want to use ClientBuilder::try_from
instead,
which provides a default stack as a starting point.
sourcepub fn with_layer<L: Layer<Svc>>(self, layer: &L) -> ClientBuilder<L::Service>
pub fn with_layer<L: Layer<Svc>>(self, layer: &L) -> ClientBuilder<L::Service>
Trait Implementations§
Auto Trait Implementations§
impl<Svc> Freeze for ClientBuilder<Svc>where
Svc: Freeze,
impl<Svc> RefUnwindSafe for ClientBuilder<Svc>where
Svc: RefUnwindSafe,
impl<Svc> Send for ClientBuilder<Svc>where
Svc: Send,
impl<Svc> Sync for ClientBuilder<Svc>where
Svc: Sync,
impl<Svc> Unpin for ClientBuilder<Svc>where
Svc: Unpin,
impl<Svc> UnwindSafe for ClientBuilder<Svc>where
Svc: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more