pub struct OAuthResponse(/* private fields */);Expand description
Response type that can be coerced into an iron::Response.
For now this is a shim around an iron::Response, but in the future the implementation
could change.
Implementations§
Source§impl OAuthResponse
impl OAuthResponse
Sourcepub fn from_response(response: Response) -> Self
pub fn from_response(response: Response) -> Self
Createa a new OAuthResponse from an existing iron::Response
Sourcepub fn set_status(&mut self, status: Status)
pub fn set_status(&mut self, status: Status)
Set the HTTP Status for the OAuthResponse
Sourcepub fn set_header<H>(&mut self, header: H)where
H: HeaderFormat + Header,
pub fn set_header<H>(&mut self, header: H)where
H: HeaderFormat + Header,
Set a header on the OAuthResponse
Trait Implementations§
Source§impl Debug for OAuthResponse
impl Debug for OAuthResponse
Source§impl From<Response> for OAuthResponse
impl From<Response> for OAuthResponse
Source§impl Into<Response> for OAuthResponse
impl Into<Response> for OAuthResponse
Source§impl WebResponse for OAuthResponse
impl WebResponse for OAuthResponse
Source§type Error = Error
type Error = Error
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