pub struct DefaultProviderStrategy;Expand description
Default strategy that applies RFC-guided heuristics.
It prioritizes structured OAuth fields (error, error_description), then
falls back to body text hints, and finally the HTTP status code. Network
failures are always treated as transient.
Trait Implementations§
Source§impl Debug for DefaultProviderStrategy
impl Debug for DefaultProviderStrategy
Source§impl Default for DefaultProviderStrategy
impl Default for DefaultProviderStrategy
Source§fn default() -> DefaultProviderStrategy
fn default() -> DefaultProviderStrategy
Returns the “default value” for a type. Read more
Source§impl Display for DefaultProviderStrategy
impl Display for DefaultProviderStrategy
Source§impl ProviderStrategy for DefaultProviderStrategy
impl ProviderStrategy for DefaultProviderStrategy
Source§fn classify_token_error(&self, ctx: &ProviderErrorContext) -> ProviderErrorKind
fn classify_token_error(&self, ctx: &ProviderErrorContext) -> ProviderErrorKind
Maps low-level HTTP/JSON errors into the broker taxonomy for a token request.
Auto Trait Implementations§
impl Freeze for DefaultProviderStrategy
impl RefUnwindSafe for DefaultProviderStrategy
impl Send for DefaultProviderStrategy
impl Sync for DefaultProviderStrategy
impl Unpin for DefaultProviderStrategy
impl UnwindSafe for DefaultProviderStrategy
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.