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
Extend
Ask for extensions if any
Negotiate
Ask registrar to negotiate
Fields
§
bound_client: &'machine BoundClient<'static>The current bound client
Ok
State machine is finished, provides parameters to construct a Pending (sync or async
version)
Fields
§
extensions: ExtensionsThe 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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more