Struct kube_client::client::ClientBuilder
source · pub struct ClientBuilder<Svc> { /* private fields */ }
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