Struct actix_service::dev::FnServiceFactory [−][src]
Trait Implementations
impl<F, Fut, Req, Res, Err, Cfg> Clone for FnServiceFactory<F, Fut, Req, Res, Err, Cfg> where
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
[src]
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F, Fut, Req, Res, Err, Cfg> IntoServiceFactory<FnServiceFactory<F, Fut, Req, Res, Err, Cfg>, Req> for F where
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
[src]
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
fn into_factory(self) -> FnServiceFactory<F, Fut, Req, Res, Err, Cfg>
[src]
impl<F, Fut, Req, Res, Err> Service<Req> for FnServiceFactory<F, Fut, Req, Res, Err, ()> where
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
[src]
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
type Response = Res
Responses given by the service.
type Error = Err
Errors produced by the service when polling readiness or executing call.
type Future = Fut
The future response value.
fn poll_ready(&self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]
fn call(&self, req: Req) -> Self::Future
[src]
impl<F, Fut, Req, Res, Err, Cfg> ServiceFactory<Req> for FnServiceFactory<F, Fut, Req, Res, Err, Cfg> where
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
[src]
F: Fn(Req) -> Fut + Clone,
Fut: Future<Output = Result<Res, Err>>,
type Response = Res
Responses given by the created services.
type Error = Err
Errors produced by the created services.
type Config = Cfg
Service factory configuration.
type Service = FnService<F, Fut, Req, Res, Err>
The kind of Service
created by this factory.
type InitError = ()
Errors potentially raised while building a service.
type Future = Ready<Result<Self::Service, Self::InitError>>
The future of the Service
instance.
fn new_service(&self, _: Cfg) -> Self::Future
[src]
Auto Trait Implementations
impl<F, Fut, Req, Res, Err, Cfg> Send for FnServiceFactory<F, Fut, Req, Res, Err, Cfg> where
Cfg: Send,
F: Send,
Req: Send,
[src]
Cfg: Send,
F: Send,
Req: Send,
impl<F, Fut, Req, Res, Err, Cfg> Sync for FnServiceFactory<F, Fut, Req, Res, Err, Cfg> where
Cfg: Sync,
F: Sync,
Req: Sync,
[src]
Cfg: Sync,
F: Sync,
Req: Sync,
impl<F, Fut, Req, Res, Err, Cfg> Unpin for FnServiceFactory<F, Fut, Req, Res, Err, Cfg> where
Cfg: Unpin,
F: Unpin,
Req: Unpin,
[src]
Cfg: Unpin,
F: Unpin,
Req: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S, Req> IntoService<S, Req> for S where
S: Service<Req>,
[src]
S: Service<Req>,
pub fn into_service(Self) -> S
[src]
impl<SF, Req> IntoServiceFactory<SF, Req> for SF where
SF: ServiceFactory<Req>,
[src]
SF: ServiceFactory<Req>,
pub fn into_factory(Self) -> SF
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,