Trait service_async::AsyncMakeService
source · pub trait AsyncMakeService {
type Service;
type Error;
// Required method
fn make_via_ref(
&self,
old: Option<&Self::Service>
) -> impl Future<Output = Result<Self::Service, Self::Error>>;
// Provided method
fn make(&self) -> impl Future<Output = Result<Self::Service, Self::Error>> { ... }
}
Required Associated Types§
Required Methods§
fn make_via_ref( &self, old: Option<&Self::Service> ) -> impl Future<Output = Result<Self::Service, Self::Error>>
Provided Methods§
Object Safety§
This trait is not object safe.