pub struct FnSvc<S, FN> {
pub inner: S,
pub rewrite_f: FN,
}Fields§
§inner: S§rewrite_f: FNImplementations§
Trait Implementations§
Source§impl<F: AsyncMakeService, FN: Clone> AsyncMakeService for FnSvc<F, FN>
impl<F: AsyncMakeService, FN: Clone> AsyncMakeService for FnSvc<F, FN>
Source§type Service = FnSvc<<F as AsyncMakeService>::Service, FN>
type Service = FnSvc<<F as AsyncMakeService>::Service, FN>
The type of service this factory creates.
Source§type Error = <F as AsyncMakeService>::Error
type Error = <F as AsyncMakeService>::Error
The type of error that can occur during service creation.
Source§impl<F: MakeService, FN: Clone> MakeService for FnSvc<F, FN>
impl<F: MakeService, FN: Clone> MakeService for FnSvc<F, FN>
Source§type Service = FnSvc<<F as MakeService>::Service, FN>
type Service = FnSvc<<F as MakeService>::Service, FN>
The type of service this factory creates.
Source§type Error = <F as MakeService>::Error
type Error = <F as MakeService>::Error
The type of error that can occur during service creation.
Auto Trait Implementations§
impl<S, FN> Freeze for FnSvc<S, FN>
impl<S, FN> RefUnwindSafe for FnSvc<S, FN>where
S: RefUnwindSafe,
FN: RefUnwindSafe,
impl<S, FN> Send for FnSvc<S, FN>
impl<S, FN> Sync for FnSvc<S, FN>
impl<S, FN> Unpin for FnSvc<S, FN>
impl<S, FN> UnwindSafe for FnSvc<S, FN>where
S: UnwindSafe,
FN: 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