pub struct SaCheckLoginMiddlewareService<S> { /* private fields */ }Trait Implementations§
Source§impl<S, Err> Service<WebRequest<Err>> for SaCheckLoginMiddlewareService<S>
impl<S, Err> Service<WebRequest<Err>> for SaCheckLoginMiddlewareService<S>
Source§type Response = WebResponse
type Response = WebResponse
Responses given by the service.
Source§async fn call(
&self,
req: WebRequest<Err>,
ctx: ServiceCtx<'_, Self>,
) -> Result<Self::Response, Self::Error>
async fn call( &self, req: WebRequest<Err>, ctx: ServiceCtx<'_, Self>, ) -> Result<Self::Response, Self::Error>
Process the request and return the response asynchronously. Read more
Source§async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
async fn ready(&self, ctx: ServiceCtx<'_, Self>) -> Result<(), Self::Error>
Returns when the service is able to process requests. Read more
Source§fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
fn poll(&self, cx: &mut Context<'_>) -> Result<(), Self::Error>
Polls service from the current task. Read more
Auto Trait Implementations§
impl<S> Freeze for SaCheckLoginMiddlewareService<S>where
S: Freeze,
impl<S> !RefUnwindSafe for SaCheckLoginMiddlewareService<S>
impl<S> Send for SaCheckLoginMiddlewareService<S>where
S: Send,
impl<S> Sync for SaCheckLoginMiddlewareService<S>where
S: Sync,
impl<S> Unpin for SaCheckLoginMiddlewareService<S>where
S: Unpin,
impl<S> !UnwindSafe for SaCheckLoginMiddlewareService<S>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
impl<Svc, Req> IntoService<Svc, Req> for Svcwhere
Svc: Service<Req>,
Source§fn into_service(self) -> Svc
fn into_service(self) -> Svc
Convert to a
Service