Struct rust_cloud_discovery::DiscoveryClient
source · pub struct DiscoveryClient<T> { /* private fields */ }
Expand description
Bridge between DiscoveryService and their clients.
Implementations
sourceimpl<T: DiscoveryService> DiscoveryClient<T>
impl<T: DiscoveryService> DiscoveryClient<T>
pub fn new(ds: T) -> DiscoveryClient<T>
sourcepub async fn get_instances(
&self
) -> Result<Vec<ServiceInstance>, Box<dyn Error>>
pub async fn get_instances(
&self
) -> Result<Vec<ServiceInstance>, Box<dyn Error>>
Returns a list of discovered instances
Auto Trait Implementations
impl<T> RefUnwindSafe for DiscoveryClient<T>where
T: RefUnwindSafe,
impl<T> Send for DiscoveryClient<T>where
T: Send,
impl<T> Sync for DiscoveryClient<T>where
T: Sync,
impl<T> Unpin for DiscoveryClient<T>where
T: Unpin,
impl<T> UnwindSafe for DiscoveryClient<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more