pub struct ServiceCtx<'a, 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::Error>where
T: Service<R>,
pub async fn ready<T, R>(&self, svc: &'a T) -> Result<(), T::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§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> !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