[−][src]Struct oxide_auth::frontends::actix::message::AccessToken
A request for a bearer token.
Example
Here is a way to request an access token response from some actix recipient.
use oxide_auth::frontends::actix::{OAuth, OAuthError, OAuthResponse}; use oxide_auth::frontends::actix::message::AccessToken; fn handle(request: HttpRequest, recipient: Recipient<AccessToken>) -> impl Future<Item=OAuthResponse, Error=OAuthError> { request.oauth2() .and_then(move |request| recipient .send(request.access_token()) // Merge `MailboxError` and response ´OAuthError` .map_err(|_| OAuthError::DenySilently) .and_then(|x| x)) }
Trait Implementations
impl<W: WebRequest> Message for AccessToken<W> where
W: Send + Sync + 'static,
W::Response: Send + Sync + 'static, [src]
W: Send + Sync + 'static,
W::Response: Send + Sync + 'static,
type Result = Result<W::Response, W::Error>
The type of value that this message will resolved with if it is successful. Read more
impl<W, P, E> Handler<AccessToken<W>> for AsActor<P> where
W: WebRequest<Error = E> + Send + Sync + 'static,
P: Endpoint<W, Error = E> + 'static,
W::Response: Send + Sync + 'static,
E: Send + Sync + 'static, [src]
W: WebRequest<Error = E> + Send + Sync + 'static,
P: Endpoint<W, Error = E> + 'static,
W::Response: Send + Sync + 'static,
E: Send + Sync + 'static,
Auto Trait Implementations
impl<W> Unpin for AccessToken<W> where
W: Unpin,
W: Unpin,
impl<W> Send for AccessToken<W> where
W: Send,
W: Send,
impl<W> Sync for AccessToken<W> where
W: Sync,
W: Sync,
impl<W> RefUnwindSafe for AccessToken<W> where
W: RefUnwindSafe,
W: RefUnwindSafe,
impl<W> UnwindSafe for AccessToken<W> where
W: UnwindSafe,
W: UnwindSafe,
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
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, I> AsResult<T, I> for T where
I: Input,
I: Input,