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,
pub fn poll(&self, cx: &mut Context<'_>) -> Result<(), S::Error>
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.
Sourcepub fn is_shutdown(&self) -> bool
pub fn is_shutdown(&self) -> bool
Check if shutdown is initiated.
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>,
Source§impl<S, R> Debug for PipelineBinding<S, R>
impl<S, R> Debug for PipelineBinding<S, 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