pub struct ServiceConnector<'incoming, ServiceProxy> { /* private fields */ }
Expand description
A builder for connecting to an aggregated service instance in the driver’s incoming namespace.
By default, it will connect to the default instance, named default
. You can override this
by calling Self::instance
.
Implementations§
Source§impl<'a, S: ServiceProxy> ServiceConnector<'a, S>where
S::Service: ServiceMarker,
impl<'a, S: ServiceProxy> ServiceConnector<'a, S>where
S::Service: ServiceMarker,
Sourcepub fn instance(self, instance: &'a str) -> Self
pub fn instance(self, instance: &'a str) -> Self
Overrides the instance name to connect to when Self::connect
is called.
Auto Trait Implementations§
impl<'incoming, ServiceProxy> Freeze for ServiceConnector<'incoming, ServiceProxy>
impl<'incoming, ServiceProxy> RefUnwindSafe for ServiceConnector<'incoming, ServiceProxy>where
ServiceProxy: RefUnwindSafe,
impl<'incoming, ServiceProxy> Send for ServiceConnector<'incoming, ServiceProxy>where
ServiceProxy: Send,
impl<'incoming, ServiceProxy> Sync for ServiceConnector<'incoming, ServiceProxy>where
ServiceProxy: Sync,
impl<'incoming, ServiceProxy> Unpin for ServiceConnector<'incoming, ServiceProxy>where
ServiceProxy: Unpin,
impl<'incoming, ServiceProxy> UnwindSafe for ServiceConnector<'incoming, ServiceProxy>where
ServiceProxy: 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