Struct service_async::BoxServiceFactory
source · pub struct BoxServiceFactory<F, Req> {
pub inner: F,
/* private fields */
}
Fields§
§inner: F
Implementations§
source§impl<F, Req> BoxServiceFactory<F, Req>
impl<F, Req> BoxServiceFactory<F, Req>
Trait Implementations§
source§impl<F, Req> AsyncMakeService for BoxServiceFactory<F, Req>
impl<F, Req> AsyncMakeService for BoxServiceFactory<F, Req>
type Service = BoxedService<Req, <<F as AsyncMakeService>::Service as Service<Req>>::Response, <<F as AsyncMakeService>::Service as Service<Req>>::Error>
type Error = <F as AsyncMakeService>::Error
async fn make_via_ref( &self, old: Option<&Self::Service> ) -> Result<Self::Service, Self::Error>
fn make(&self) -> impl Future<Output = Result<Self::Service, Self::Error>>
source§impl<F, Req> MakeService for BoxServiceFactory<F, Req>
impl<F, Req> MakeService for BoxServiceFactory<F, Req>
type Service = BoxedService<Req, <<F as MakeService>::Service as Service<Req>>::Response, <<F as MakeService>::Service as Service<Req>>::Error>
type Error = <F as MakeService>::Error
fn make_via_ref( &self, old: Option<&Self::Service> ) -> Result<Self::Service, Self::Error>
fn make(&self) -> Result<Self::Service, Self::Error>
impl<F: Send, Req> Send for BoxServiceFactory<F, Req>
impl<F: Sync, Req> Sync for BoxServiceFactory<F, Req>
Auto Trait Implementations§
impl<F, Req> RefUnwindSafe for BoxServiceFactory<F, Req>where
F: RefUnwindSafe,
Req: RefUnwindSafe,
impl<F, Req> Unpin for BoxServiceFactory<F, Req>
impl<F, Req> UnwindSafe for BoxServiceFactory<F, Req>where
F: UnwindSafe,
Req: UnwindSafe,
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