pub trait Choices {
fn run<'async_trait, T>(
&'static self,
addr: T
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
T: 'async_trait + Into<SocketAddr> + Send,
Self: 'async_trait;
}
Expand description
A trait to manage the http server responsible for the configuration.
Required Methods
fn run<'async_trait, T>(
&'static self,
addr: T
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
T: 'async_trait + Into<SocketAddr> + Send,
Self: 'async_trait,
fn run<'async_trait, T>(
&'static self,
addr: T
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
T: 'async_trait + Into<SocketAddr> + Send,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
Starts the configuration http server on the chosen address.
Implementations on Foreign Types
sourceimpl<C: Choices + Send> Choices for Arc<Mutex<C>>
impl<C: Choices + Send> Choices for Arc<Mutex<C>>
fn run<'async_trait, T>(
&'static self,
addr: T
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
T: 'async_trait + Into<SocketAddr> + Send,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourceimpl<C: Choices + Send + Sync> Choices for Arc<RwLock<C>>
impl<C: Choices + Send + Sync> Choices for Arc<RwLock<C>>
fn run<'async_trait, T>(
&'static self,
addr: T
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
T: 'async_trait + Into<SocketAddr> + Send,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;