[−][src]Struct oxide_auth::frontends::actix::AsActor
Newtype wrapper around a primitive, transforming it into an actor.
Trait Implementations
impl<P: 'static> Actor for AsActor<P>[src]
type Context = Context<Self>
Actor execution context type
fn started(&mut self, ctx: &mut Self::Context)[src]
Method is called when actor get polled first time.
fn stopping(&mut self, ctx: &mut Self::Context) -> Running[src]
Method is called after an actor is in Actor::Stopping state. There could be several reasons for stopping. Context::stop get called by the actor itself. All addresses to current actor get dropped and no more evented objects left in the context. Read more
fn stopped(&mut self, ctx: &mut Self::Context)[src]
Method is called after an actor is stopped, it can be used to perform any needed cleanup work or spawning more actors. This is final state, after this call actor get dropped. Read more
fn start(self) -> Addr<Self> where
Self: Actor<Context = Context<Self>>, [src]
Self: Actor<Context = Context<Self>>,
Start new asynchronous actor, returns address of newly created actor. Read more
fn start_default() -> Addr<Self> where
Self: Actor<Context = Context<Self>> + Default, [src]
Self: Actor<Context = Context<Self>> + Default,
Start new asynchronous actor, returns address of newly created actor.
fn create<F>(f: F) -> Addr<Self> where
F: FnOnce(&mut Context<Self>) -> Self + 'static,
Self: Actor<Context = Context<Self>>, [src]
F: FnOnce(&mut Context<Self>) -> Self + 'static,
Self: Actor<Context = Context<Self>>,
Use create method, if you need Context object during actor initialization. Read more
impl<W, P, E> Handler<AuthorizationCode<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,
type Result = Result<W::Response, W::Error>
The type of value that this handle will return
fn handle(
&mut self,
msg: AuthorizationCode<W>,
_: &mut Self::Context
) -> Self::Result[src]
&mut self,
msg: AuthorizationCode<W>,
_: &mut Self::Context
) -> Self::Result
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,
type Result = Result<W::Response, W::Error>
The type of value that this handle will return
fn handle(&mut self, msg: AccessToken<W>, _: &mut Self::Context) -> Self::Result[src]
impl<W, P, E> Handler<Resource<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,
type Result = Result<Grant, ResourceProtection<W::Response>>
The type of value that this handle will return
fn handle(&mut self, msg: Resource<W>, _: &mut Self::Context) -> Self::Result[src]
impl<A: Authorizer + 'static> Handler<Authorize> for AsActor<A>[src]
type Result = Result<String, ()>
The type of value that this handle will return
fn handle(&mut self, msg: Authorize, _: &mut Self::Context) -> Self::Result[src]
impl<A: Authorizer + 'static> Handler<Extract> for AsActor<A>[src]
type Result = Result<Option<Grant>, ()>
The type of value that this handle will return
fn handle(&mut self, msg: Extract, _: &mut Self::Context) -> Self::Result[src]
impl<I: Issuer + 'static> Handler<Issue> for AsActor<I>[src]
type Result = Result<IssuedToken, ()>
The type of value that this handle will return
fn handle(&mut self, msg: Issue, _: &mut Self::Context) -> Self::Result[src]
impl<I: Issuer + 'static> Handler<Refresh> for AsActor<I>[src]
type Result = Result<RefreshedToken, ()>
The type of value that this handle will return
fn handle(&mut self, msg: Refresh, _: &mut Self::Context) -> Self::Result[src]
impl<I: Issuer + 'static> Handler<RecoverToken> for AsActor<I>[src]
type Result = Result<Option<Grant>, ()>
The type of value that this handle will return
fn handle(&mut self, msg: RecoverToken, _: &mut Self::Context) -> Self::Result[src]
impl<I: Issuer + 'static> Handler<RecoverRefresh> for AsActor<I>[src]
type Result = Result<Option<Grant>, ()>
The type of value that this handle will return
fn handle(&mut self, msg: RecoverRefresh, _: &mut Self::Context) -> Self::Result[src]
impl<R: Registrar + 'static> Handler<BoundRedirect> for AsActor<R>[src]
type Result = Result<BoundClient<'static>, RegistrarError>
The type of value that this handle will return
fn handle(&mut self, msg: BoundRedirect, _: &mut Self::Context) -> Self::Result[src]
impl<R: Registrar + 'static> Handler<Negotiate> for AsActor<R>[src]
type Result = Result<PreGrant, RegistrarError>
The type of value that this handle will return
fn handle(&mut self, msg: Negotiate, _: &mut Self::Context) -> Self::Result[src]
impl<R: Registrar + 'static> Handler<Check> for AsActor<R>[src]
Auto Trait Implementations
impl<P> Unpin for AsActor<P> where
P: Unpin,
P: Unpin,
impl<P> Send for AsActor<P> where
P: Send,
P: Send,
impl<P> Sync for AsActor<P> where
P: Sync,
P: Sync,
impl<P> RefUnwindSafe for AsActor<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> UnwindSafe for AsActor<P> where
P: UnwindSafe,
P: 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,