pub struct Builder { /* private fields */ }Implementations§
Source§impl Builder
impl Builder
Sourcepub async fn connect<E: AsRef<str>, S: AsRef<[E]>>(
endpoints: S,
) -> Result<Builder, Error>
pub async fn connect<E: AsRef<str>, S: AsRef<[E]>>( endpoints: S, ) -> Result<Builder, Error>
Connect to etcd servers from given endpoints.
Sourcepub fn detector_from_key(&self, key: ServiceKey) -> Detector
pub fn detector_from_key(&self, key: ServiceKey) -> Detector
根据ServiceKey创建一个detector, 如果用于注册,则会发现没有实例具本信息
Sourcepub fn meta_detector(&self, meta: Meta) -> MetaDetector
pub fn meta_detector(&self, meta: Meta) -> MetaDetector
根据Meta对象创建一个MetaDetector
Sourcepub fn meta_detector_from_key(&self, key: MetaKey) -> MetaDetector
pub fn meta_detector_from_key(&self, key: MetaKey) -> MetaDetector
根据MetaKey创建一个MetaDetector, 如果用于注册,则会发现没有实例具本信息
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Builder
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
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§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request