[−][src]Struct oxide_auth_rocket::OAuthResponse
Response type for Rocket OAuth requests
A simple wrapper type around a simple rocket::Response<'r>
that implements WebResponse
.
Methods
impl<'r> OAuthResponse<'r>
[src]
pub fn new() -> Self
[src]
Create a new OAuthResponse<'r>
pub fn from_response(response: Response<'r>) -> Self
[src]
Create a new OAuthResponse<'r>
from an existing rocket::Response<'r>
Trait Implementations
impl<'r> Debug for OAuthResponse<'r>
[src]
impl<'r> Default for OAuthResponse<'r>
[src]
impl<'r> From<Response<'r>> for OAuthResponse<'r>
[src]
impl<'r> Into<Response<'r>> for OAuthResponse<'r>
[src]
impl<'r> Responder<'r> for OAuthResponse<'r>
[src]
fn respond_to(self, _: &Request) -> Result<'r>
[src]
impl<'r> WebResponse for OAuthResponse<'r>
[src]
type Error = WebError
The error generated when trying to construct an unhandled or invalid response.
fn ok(&mut self) -> Result<(), Self::Error>
[src]
fn redirect(&mut self, url: Url) -> Result<(), Self::Error>
[src]
fn client_error(&mut self) -> Result<(), Self::Error>
[src]
fn unauthorized(&mut self, kind: &str) -> Result<(), Self::Error>
[src]
fn body_text(&mut self, text: &str) -> Result<(), Self::Error>
[src]
fn body_json(&mut self, data: &str) -> Result<(), Self::Error>
[src]
Auto Trait Implementations
impl<'r> !RefUnwindSafe for OAuthResponse<'r>
impl<'r> !Send for OAuthResponse<'r>
impl<'r> !Sync for OAuthResponse<'r>
impl<'r> Unpin for OAuthResponse<'r>
impl<'r> !UnwindSafe for OAuthResponse<'r>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,