Struct ntex_service::ServiceCtx
source · 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<'a, S> Clone for ServiceCtx<'a, S>
impl<'a, S> Clone for ServiceCtx<'a, S>
source§impl<'a, S> Debug for ServiceCtx<'a, S>
impl<'a, S> Debug for ServiceCtx<'a, S>
impl<'a, S> Copy for ServiceCtx<'a, S>
Auto Trait Implementations§
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: ?Sized> Unpin for ServiceCtx<'a, S>
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