pub struct Response { /* private fields */ }Expand description
The type Oxide Auth provides in response to a request.
Implementations§
Trait Implementations§
Source§impl WebResponse for Response
impl WebResponse for Response
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 Response
impl !RefUnwindSafe for Response
impl Send for Response
impl !Sync for Response
impl Unpin for Response
impl !UnwindSafe for Response
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