pub enum Output<'machine> {
GetRequest,
Recover {
token: &'machine str,
},
DetermineScopes,
Ok(Box<Grant>),
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
Refresh::next. The output of most states is simply repeated if Input::None is provided
instead but note that the successful bearer token response is not repeated.
This borrows data from the underlying state machine, so you need to drop it before advancing it with newly provided input.
Variants§
GetRequest
The state requires some information from the request to advance.
Recover
The issuer should try to recover the grant of a bearer token.
Fulfilled by Input::Recovered.
DetermineScopes
The executor must determine the scopes applying to the resource.
Fulfilled by Input::Scopes.
Ok(Box<Grant>)
The state machine finished and access was allowed.
Returns the grant with which access was granted in case a detailed inspection or logging is required.
This output can not be requested repeatedly, any future Input will yield a primitive
error instead.
Err(Error)
The state machine finished in an error.
The error will be repeated on any following input.