pub enum BrokerError {
NotConfigured,
Lookup(String),
Internal(String),
Expired,
Revoked(String),
}Expand description
Errors that can be returned by a TokenBroker::resolve or
TokenBroker::resolve_bearer call.
Variants§
NotConfigured
Lookup(String)
Internal(String)
Expired
Bearer was recognised but its advertised expiry has passed. SP-token-broker-phase2 §4.4. Maps to HTTP 401 at the listener.
Revoked(String)
Bearer was recognised but its underlying grant has been administratively revoked (status flipped server-side). SP-token-broker-phase2 §4.4 + §4.8.
Trait Implementations§
Source§impl Debug for BrokerError
impl Debug for BrokerError
Source§impl Display for BrokerError
impl Display for BrokerError
Source§impl Error for BrokerError
impl Error for BrokerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for BrokerError
impl RefUnwindSafe for BrokerError
impl Send for BrokerError
impl Sync for BrokerError
impl Unpin for BrokerError
impl UnsafeUnpin for BrokerError
impl UnwindSafe for BrokerError
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