pub struct AggregateDiscovery { /* private fields */ }Expand description
Chain of discovery backends. lookup walks providers in order and
returns the first non-empty resolution.
Implementations§
Source§impl AggregateDiscovery
impl AggregateDiscovery
pub fn new(providers: Vec<Arc<dyn ServiceDiscovery>>) -> Arc<Self>
pub fn provider_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AggregateDiscovery
impl !RefUnwindSafe for AggregateDiscovery
impl Send for AggregateDiscovery
impl Sync for AggregateDiscovery
impl Unpin for AggregateDiscovery
impl UnsafeUnpin for AggregateDiscovery
impl !UnwindSafe for AggregateDiscovery
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