Discovery

Trait Discovery 

Source
pub trait Discovery: 'static {
    // Required method
    fn instances(
        &self,
    ) -> impl Future<Output = Result<Vec<impl Instance>, Box<dyn Error + Send + Sync>>> + Send;

    // Provided method
    fn backends(
        &self,
    ) -> impl Future<Output = Result<Vec<BackendHost>, Box<dyn Error + Send + Sync>>> + Send { ... }
}

Required Methods§

Source

fn instances( &self, ) -> impl Future<Output = Result<Vec<impl Instance>, Box<dyn Error + Send + Sync>>> + Send

Provided Methods§

Source

fn backends( &self, ) -> impl Future<Output = Result<Vec<BackendHost>, Box<dyn Error + Send + Sync>>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Discovery for K8s

Source§

impl<F> Discovery for Fs<F>
where F: ConfigFormat + Send + Sync + 'static,