CreateListener

Trait CreateListener 

Source
pub trait CreateListener {
    type Listener: Listen;

    const CONFIG_LISTENER_NAME: &'static str;

    // Required method
    fn create_listener(
        &self,
    ) -> impl Future<Output = Result<(Config, Self::Listener), Box<dyn Error + Send + Sync>>> + Send;
}

Required Associated Constants§

Required Associated Types§

Required Methods§

Source

fn create_listener( &self, ) -> impl Future<Output = Result<(Config, Self::Listener), 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 CreateListener for K8s

Source§

impl CreateListener for Memory

Source§

const CONFIG_LISTENER_NAME: &'static str = "memory"

Source§

type Listener = Static

Source§

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

Source§

const CONFIG_LISTENER_NAME: &'static str = "file"

Source§

type Listener = FsListener

Source§

impl<F> CreateListener for Redis<F>
where F: ConfigFormat + Clone + Send + Sync + 'static,