pub struct ServiceFn<F, R> {
f: F,
_req: PhantomData<fn(_: R)>,
}
Expand description
Service returned by service_fn
Fields§
§f: F
§_req: PhantomData<fn(_: R)>
Trait Implementations§
source§impl<F, ReqBody, Ret, ResBody, E> Service<Request<ReqBody>> for ServiceFn<F, ReqBody>
impl<F, ReqBody, Ret, ResBody, E> Service<Request<ReqBody>> for ServiceFn<F, ReqBody>
impl<F, R> Copy for ServiceFn<F, R>where
F: Copy,
Auto Trait Implementations§
impl<F, R> Freeze for ServiceFn<F, R>where
F: Freeze,
impl<F, R> RefUnwindSafe for ServiceFn<F, R>where
F: RefUnwindSafe,
impl<F, R> Send for ServiceFn<F, R>where
F: Send,
impl<F, R> Sync for ServiceFn<F, R>where
F: Sync,
impl<F, R> Unpin for ServiceFn<F, R>where
F: Unpin,
impl<F, R> UnwindSafe for ServiceFn<F, R>where
F: 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)