pub struct TokenProvider(/* private fields */);Expand description
Fetches the token for each connection attempt, so an expired one is replaced without restarting the client. In the browser, which sends the page’s cookies itself and no header, it is asked before each attempt (to refresh the cookie, say) and what it returns is not sent.
Implementations§
Trait Implementations§
Source§impl Clone for TokenProvider
impl Clone for TokenProvider
Auto Trait Implementations§
impl !RefUnwindSafe for TokenProvider
impl !UnwindSafe for TokenProvider
impl Forget for TokenProvider
impl Freeze for TokenProvider
impl Move for TokenProvider
impl Send for TokenProvider
impl Sync for TokenProvider
impl Unpin for TokenProvider
impl UnsafeUnpin for TokenProvider
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