pub struct PrimitiveError {
pub grant: Option<Grant>,
pub extensions: Option<Extensions>,
}Expand description
The endpoint should have enough control over its primitives to find out what has gone wrong, e.g. they may externall supply error information.
In this case, all previous results returned by the primitives are included in the return value. Through this mechanism, one can accomodate async handlers by implementing a sync-based result cache that is filled with these partial values. In case only parts of the outstanding futures, invoked during internal calls, are ready the cache can be refilled through the error eliminating polls to already sucessful futures.
Note that token is not included in this list, since the handler
can never fail after supplying a token to the backend.
Fields§
§grant: Option<Grant>The already extracted grant.
You may reuse this, or more precisely you must to fulfill this exact request in case of an error recovery attempt.
extensions: Option<Extensions>The extensions that were computed.
Implementations§
Trait Implementations§
Source§impl Clone for PrimitiveError
impl Clone for PrimitiveError
Source§fn clone(&self) -> PrimitiveError
fn clone(&self) -> PrimitiveError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more