pub type TokenFuture = Pin<Box<dyn Future<Output = Result<SecretString, AuthError>> + Send>>;Expand description
The future returned by a TokenProvider. Send on native (it is awaited inside a client
shared across tasks); on wasm32 the browser is single-threaded and reqwest-adjacent futures are
!Send, so the Send bound is dropped there. Send is an auto trait and cannot be swapped for
the non-auto [super::MaybeSend] as an extra trait-object bound, so the alias is cfg-gated.
Aliased Typeยง
#[repr(transparent)]pub struct TokenFuture { /* private fields */ }