[−][src]Struct async_consul::Catalog
Catalog operations.
This type can be used to interact with the "Catalog" portion of the Consul API.
Implementations
impl Catalog
[src]
pub async fn get_service_nodes<'_, '_>(
&'_ self,
service: &'_ str,
options: Option<QueryOptions>
) -> Result<(Vec<CatalogServiceNode>, QueryMetadata), Error>
[src]
&'_ self,
service: &'_ str,
options: Option<QueryOptions>
) -> Result<(Vec<CatalogServiceNode>, QueryMetadata), Error>
Gets the nodes running the specified service.
pub fn watch_service_nodes(
&self,
service: &str,
options: Option<QueryOptions>
) -> impl Stream<Item = Result<(Vec<CatalogServiceNode>, QueryMetadata), Error>>
[src]
&self,
service: &str,
options: Option<QueryOptions>
) -> impl Stream<Item = Result<(Vec<CatalogServiceNode>, QueryMetadata), Error>>
Gets a stream of changes in nodes running the specified service.
Each item in the response stream represents all nodes running in the service after a change to the service has occurred. The stream will terminate if any error is hit during the background requests made to Consul.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl !UnwindSafe for Catalog
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,