[][src]Struct oxide_auth::frontends::actix::AsActor

pub struct AsActor<P>(pub P);

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]

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]

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]

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]

type Result = Result<W::Response, W::Error>

The type of value that this handle will return

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]

type Result = Result<W::Response, W::Error>

The type of value that this handle will return

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]

type Result = Result<Grant, ResourceProtection<W::Response>>

The type of value that this handle will return

impl<A: Authorizer + 'static> Handler<Authorize> for AsActor<A>[src]

type Result = Result<String, ()>

The type of value that this handle will return

impl<A: Authorizer + 'static> Handler<Extract> for AsActor<A>[src]

type Result = Result<Option<Grant>, ()>

The type of value that this handle will return

impl<I: Issuer + 'static> Handler<Issue> for AsActor<I>[src]

type Result = Result<IssuedToken, ()>

The type of value that this handle will return

impl<I: Issuer + 'static> Handler<Refresh> for AsActor<I>[src]

type Result = Result<RefreshedToken, ()>

The type of value that this handle will return

impl<I: Issuer + 'static> Handler<RecoverToken> for AsActor<I>[src]

type Result = Result<Option<Grant>, ()>

The type of value that this handle will return

impl<I: Issuer + 'static> Handler<RecoverRefresh> for AsActor<I>[src]

type Result = Result<Option<Grant>, ()>

The type of value that this handle will return

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

impl<R: Registrar + 'static> Handler<Negotiate> for AsActor<R>[src]

type Result = Result<PreGrant, RegistrarError>

The type of value that this handle will return

impl<R: Registrar + 'static> Handler<Check> for AsActor<R>[src]

type Result = Result<(), RegistrarError>

The type of value that this handle will return

Auto Trait Implementations

impl<P> Unpin for AsActor<P> where
    P: Unpin

impl<P> Send for AsActor<P> where
    P: Send

impl<P> Sync for AsActor<P> where
    P: Sync

impl<P> RefUnwindSafe for AsActor<P> where
    P: RefUnwindSafe

impl<P> UnwindSafe for AsActor<P> where
    P: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> UnsafeAny for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input,