pub struct Around<E, F> { /* private fields */ }
Expand description
Endpoint for the around
method.
Trait Implementations
sourceimpl<E, F, Fut, T> Endpoint for Around<E, F>where
E: Endpoint,
F: Fn(Arc<E>, Request) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<T>> + Send,
T: IntoResponse,
impl<E, F, Fut, T> Endpoint for Around<E, F>where
E: Endpoint,
F: Fn(Arc<E>, Request) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<T>> + Send,
T: IntoResponse,
Auto Trait Implementations
impl<E, F> RefUnwindSafe for Around<E, F>where
E: RefUnwindSafe,
F: RefUnwindSafe,
impl<E, F> Send for Around<E, F>where
E: Send + Sync,
F: Send,
impl<E, F> Sync for Around<E, F>where
E: Send + Sync,
F: Sync,
impl<E, F> Unpin for Around<E, F>where
F: Unpin,
impl<E, F> UnwindSafe for Around<E, F>where
E: RefUnwindSafe,
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more