Enum Output

Source
pub enum Output<'machine> {
    Bind {
        client_id: String,
        redirect_uri: Option<ExactUrl>,
    },
    Extend,
    Negotiate {
        bound_client: &'machine BoundClient<'static>,
        scope: Option<Scope>,
    },
    Ok {
        pre_grant: PreGrant,
        state: Option<String>,
        extensions: Extensions,
    },
    Err(Error),
}
Expand description

A request by the statemachine to the executor.

Each variant is fulfilled by certain variants of the next inputs as an argument to Authorization::advance. The output of most states is simply repeated if Input::None is provided instead.

Variants§

§

Bind

Ask registrar to bind the client and checks its redirect_uri

Fields

§client_id: String

The to-be-bound client.

§redirect_uri: Option<ExactUrl>

The redirect_uri to check if any

§

Extend

Ask for extensions if any

§

Negotiate

Ask registrar to negotiate

Fields

§bound_client: &'machine BoundClient<'static>

The current bound client

§scope: Option<Scope>

The scope, if any

§

Ok

State machine is finished, provides parameters to construct a Pending (sync or async version)

Fields

§pre_grant: PreGrant

The grant

§state: Option<String>

The state

§extensions: Extensions

The extensions

§

Err(Error)

The state machine finished in an error.

The error will be repeated on any following input.

Auto Trait Implementations§

§

impl<'machine> Freeze for Output<'machine>

§

impl<'machine> RefUnwindSafe for Output<'machine>

§

impl<'machine> Send for Output<'machine>

§

impl<'machine> Sync for Output<'machine>

§

impl<'machine> Unpin for Output<'machine>

§

impl<'machine> UnwindSafe for Output<'machine>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,