pub struct OAuthResponse { /* private fields */ }
Expand description
Type implementing WebResponse
and IntoResponse
for use in route handlers
Implementations§
Trait Implementations§
Source§impl Clone for OAuthResponse
impl Clone for OAuthResponse
Source§fn clone(&self) -> OAuthResponse
fn clone(&self) -> OAuthResponse
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 Debug for OAuthResponse
impl Debug for OAuthResponse
Source§impl Default for OAuthResponse
impl Default for OAuthResponse
Source§fn default() -> OAuthResponse
fn default() -> OAuthResponse
Returns the “default value” for a type. Read more
Source§impl IntoResponse for OAuthResponse
impl IntoResponse for OAuthResponse
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Source§impl WebResponse for OAuthResponse
impl WebResponse for OAuthResponse
Source§type Error = WebError
type Error = WebError
The error generated when trying to construct an unhandled or invalid response.
Source§fn redirect(&mut self, url: Url) -> Result<(), Self::Error>
fn redirect(&mut self, url: Url) -> Result<(), Self::Error>
A response which will redirect the user-agent to which the response is issued.
Set the response status to 401 and add a
WWW-Authenticate
header.Auto Trait Implementations§
impl Freeze for OAuthResponse
impl RefUnwindSafe for OAuthResponse
impl Send for OAuthResponse
impl Sync for OAuthResponse
impl Unpin for OAuthResponse
impl UnwindSafe for OAuthResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, S> Handler<IntoResponseHandler, S> for T
impl<T, S> Handler<IntoResponseHandler, S> for T
Source§fn call(
self,
_req: Request<Body>,
_state: S,
) -> <T as Handler<IntoResponseHandler, S>>::Future
fn call( self, _req: Request<Body>, _state: S, ) -> <T as Handler<IntoResponseHandler, S>>::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer
to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service
by providing the stateSource§impl<H, T> HandlerWithoutStateExt<T> for H
impl<H, T> HandlerWithoutStateExt<T> for H
Source§fn into_service(self) -> HandlerService<H, T, ()>
fn into_service(self) -> HandlerService<H, T, ()>
Convert the handler into a
Service
and no state.Source§fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
Convert the handler into a
MakeService
and no state. Read more