pub struct ResourceBuilderWithContextLayer<F, L> { /* private fields */ }Expand description
Builder state after a layer has been applied to a context-aware handler.
Implementations§
Source§impl<F, Fut, L> ResourceBuilderWithContextLayer<F, L>where
F: Fn(RequestContext) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<ReadResourceResult>> + Send + 'static,
L: Layer<ResourceHandlerService<ContextAwareHandler<F>>> + Clone + Send + Sync + 'static,
L::Service: Service<ResourceRequest, Response = ReadResourceResult> + Clone + Send + 'static,
<L::Service as Service<ResourceRequest>>::Error: Display + Send,
<L::Service as Service<ResourceRequest>>::Future: Send,
impl<F, Fut, L> ResourceBuilderWithContextLayer<F, L>where
F: Fn(RequestContext) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<ReadResourceResult>> + Send + 'static,
L: Layer<ResourceHandlerService<ContextAwareHandler<F>>> + Clone + Send + Sync + 'static,
L::Service: Service<ResourceRequest, Response = ReadResourceResult> + Clone + Send + 'static,
<L::Service as Service<ResourceRequest>>::Error: Display + Send,
<L::Service as Service<ResourceRequest>>::Future: Send,
Auto Trait Implementations§
impl<F, L> Freeze for ResourceBuilderWithContextLayer<F, L>
impl<F, L> RefUnwindSafe for ResourceBuilderWithContextLayer<F, L>where
F: RefUnwindSafe,
L: RefUnwindSafe,
impl<F, L> Send for ResourceBuilderWithContextLayer<F, L>
impl<F, L> Sync for ResourceBuilderWithContextLayer<F, L>
impl<F, L> Unpin for ResourceBuilderWithContextLayer<F, L>
impl<F, L> UnwindSafe for ResourceBuilderWithContextLayer<F, L>where
F: UnwindSafe,
L: 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