pub struct ServiceCtx<'a, S>where
S: ?Sized,{ /* private fields */ }Implementations§
Source§impl<'a, S> ServiceCtx<'a, S>
impl<'a, S> ServiceCtx<'a, S>
Sourcepub async fn ready<T, R>(
&self,
svc: &'a T,
) -> Result<(), <T as Service<R>>::Error>where
T: Service<R>,
pub async fn ready<T, R>(
&self,
svc: &'a T,
) -> Result<(), <T as Service<R>>::Error>where
T: Service<R>,
Returns when the service is able to process requests.
Trait Implementations§
Source§impl<S> Clone for ServiceCtx<'_, S>
impl<S> Clone for ServiceCtx<'_, S>
Source§fn clone(&self) -> ServiceCtx<'_, S>
fn clone(&self) -> ServiceCtx<'_, S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S> Debug for ServiceCtx<'_, S>
impl<S> Debug for ServiceCtx<'_, S>
impl<S> Copy for ServiceCtx<'_, S>
Auto Trait Implementations§
impl<'a, S> Freeze for ServiceCtx<'a, S>where
S: ?Sized,
impl<'a, S> !RefUnwindSafe for ServiceCtx<'a, S>
impl<'a, S> !Send for ServiceCtx<'a, S>
impl<'a, S> !Sync for ServiceCtx<'a, S>
impl<'a, S> Unpin for ServiceCtx<'a, S>where
S: ?Sized,
impl<'a, S> UnsafeUnpin for ServiceCtx<'a, S>where
S: ?Sized,
impl<'a, S> !UnwindSafe for ServiceCtx<'a, S>
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