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