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§
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