Struct actix_service::dev::FnServiceNoConfig [−][src]
pub struct FnServiceNoConfig<F, C, S, R, E> where
F: Fn() -> R,
S: Service,
R: Future<Output = Result<S, E>>, { /* fields omitted */ }
Expand description
Converter for Fn() -> Future<Service>
fn
Trait Implementations
impl<F, C, S, R, E> IntoServiceFactory<FnServiceNoConfig<F, C, S, R, E>> for F where
F: Fn() -> R,
R: Future<Output = Result<S, E>>,
S: Service,
impl<F, C, S, R, E> IntoServiceFactory<FnServiceNoConfig<F, C, S, R, E>> for F where
F: Fn() -> R,
R: Future<Output = Result<S, E>>,
S: Service,
Convert Self
to a ServiceFactory
impl<F, C, S, R, E> ServiceFactory for FnServiceNoConfig<F, C, S, R, E> where
F: Fn() -> R,
R: Future<Output = Result<S, E>>,
S: Service,
impl<F, C, S, R, E> ServiceFactory for FnServiceNoConfig<F, C, S, R, E> where
F: Fn() -> R,
R: Future<Output = Result<S, E>>,
S: Service,
type Service = S
type Service = S
The kind of Service
created by this factory.
type Config = C
type Config = C
Service factory configuration.
type InitError = E
type InitError = E
Errors potentially raised while building a service.
type Future = R
type Future = R
The future of the Service
instance.
Create and return a new service asynchronously.
Map this service’s output to a different type, returning a new service of the resulting type. Read more
Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations
impl<F, C, S, R, E> RefUnwindSafe for FnServiceNoConfig<F, C, S, R, E> where
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, C, S, R, E> Send for FnServiceNoConfig<F, C, S, R, E> where
C: Send,
F: Send,
impl<F, C, S, R, E> Sync for FnServiceNoConfig<F, C, S, R, E> where
C: Sync,
F: Sync,
impl<F, C, S, R, E> Unpin for FnServiceNoConfig<F, C, S, R, E> where
C: Unpin,
F: Unpin,
impl<F, C, S, R, E> UnwindSafe for FnServiceNoConfig<F, C, S, R, E> where
C: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Self
to a ServiceFactory