pub struct FnServiceNoConfig<F, C, S, R, E>{ /* private fields */ }Expand description
Converter for Fn() -> Future<Service> fn
Trait Implementations§
Source§impl<F, C, S, R, E> Clone for FnServiceNoConfig<F, C, S, R, E>
impl<F, C, S, R, E> Clone for FnServiceNoConfig<F, C, S, R, E>
Source§impl<F, C, S, R, E> IntoServiceFactory<FnServiceNoConfig<F, C, S, R, E>> for F
impl<F, C, S, R, E> IntoServiceFactory<FnServiceNoConfig<F, C, S, R, E>> for F
Source§fn into_factory(self) -> FnServiceNoConfig<F, C, S, R, E>
fn into_factory(self) -> FnServiceNoConfig<F, C, S, R, E>
Convert
Self to a ServiceFactorySource§impl<F, C, S, R, E> ServiceFactory for FnServiceNoConfig<F, C, S, R, E>
impl<F, C, S, R, E> ServiceFactory for FnServiceNoConfig<F, C, S, R, E>
Source§fn new_service(&self, _: C) -> Self::Future
fn new_service(&self, _: C) -> Self::Future
Create and return a new service value asynchronously.
Source§fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R>
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R>
Map this service’s output to a different type, returning a new service
of the resulting type.
Source§fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E>
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E>
Map this service’s error to a different error, returning a new service.
Source§fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E>
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E>
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations§
impl<F, C, S, R, E> Freeze for FnServiceNoConfig<F, C, S, R, E>where
F: Freeze,
impl<F, C, S, R, E> RefUnwindSafe for FnServiceNoConfig<F, C, S, R, E>where
F: RefUnwindSafe,
C: RefUnwindSafe,
impl<F, C, S, R, E> Send for FnServiceNoConfig<F, C, S, R, E>
impl<F, C, S, R, E> Sync for FnServiceNoConfig<F, C, S, R, E>
impl<F, C, S, R, E> Unpin for FnServiceNoConfig<F, C, S, R, E>
impl<F, C, S, R, E> UnsafeUnpin for FnServiceNoConfig<F, C, S, R, E>where
F: UnsafeUnpin,
impl<F, C, S, R, E> UnwindSafe for FnServiceNoConfig<F, C, S, R, E>where
F: UnwindSafe,
C: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoServiceFactory<T> for Twhere
T: ServiceFactory,
impl<T> IntoServiceFactory<T> for Twhere
T: ServiceFactory,
Source§fn into_factory(self) -> T
fn into_factory(self) -> T
Convert
Self to a ServiceFactory