Struct ntex_service::PipelineBinding
source · pub struct PipelineBinding<S, R>where
S: Service<R>,{ /* private fields */ }Expand description
Bound container for a service.
Implementations§
source§impl<S, R> PipelineBinding<S, R>where
S: Service<R> + 'static,
R: 'static,
impl<S, R> PipelineBinding<S, R>where
S: Service<R> + 'static,
R: 'static,
sourcepub fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), S::Error>>
pub fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), S::Error>>
Returns Ready when the pipeline is able to process requests.
panics if .poll_shutdown() was called before.
sourcepub fn poll_shutdown(&self, cx: &mut Context<'_>) -> Poll<()>
pub fn poll_shutdown(&self, cx: &mut Context<'_>) -> Poll<()>
Returns Ready when the service is properly shutdowns.
sourcepub fn call(&self, req: R) -> PipelineCall<S, R> ⓘ
pub fn call(&self, req: R) -> PipelineCall<S, R> ⓘ
Wait for service readiness and then create future object that resolves to service result.
sourcepub fn call_nowait(&self, req: R) -> PipelineCall<S, R> ⓘ
pub fn call_nowait(&self, req: R) -> PipelineCall<S, R> ⓘ
Call service and create future object that resolves to service result.
Note, this call does not check service readiness.
Trait Implementations§
source§impl<S, R> Clone for PipelineBinding<S, R>where
S: Service<R>,
impl<S, R> Clone for PipelineBinding<S, R>where
S: Service<R>,
Auto Trait Implementations§
impl<S, R> !Freeze for PipelineBinding<S, R>
impl<S, R> !RefUnwindSafe for PipelineBinding<S, R>
impl<S, R> !Send for PipelineBinding<S, R>
impl<S, R> !Sync for PipelineBinding<S, R>
impl<S, R> Unpin for PipelineBinding<S, R>
impl<S, R> !UnwindSafe for PipelineBinding<S, R>
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