pub struct AuthManager { /* private fields */ }Implementations§
Source§impl AuthManager
impl AuthManager
pub fn new(gateway: String, http: Client) -> Self
pub async fn discover_client(&self) -> Result<CliClientInfo>
pub async fn access_token(&self) -> Result<String>
pub async fn cache_access_token(&self, token: String, expires_at: u64)
pub async fn forget_access_token(&self)
pub async fn login_browser(&self) -> Result<LoginResult>
Auto Trait Implementations§
impl !Freeze for AuthManager
impl !RefUnwindSafe for AuthManager
impl !UnwindSafe for AuthManager
impl Send for AuthManager
impl Sync for AuthManager
impl Unpin for AuthManager
impl UnsafeUnpin for AuthManager
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