pub struct DiscoveryClient<T> { /* private fields */ }Expand description
Bridge between DiscoveryService and their clients.
Implementations§
Source§impl<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> Freeze for DiscoveryClient<T>where
T: Freeze,
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§
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