pub struct AuthClient { /* private fields */ }Implementations§
Source§impl AuthClient
impl AuthClient
pub fn new( profile: Profile, store: Arc<dyn CredentialStore>, options: AuthOptions, ) -> Result<Self>
pub fn profile(&self) -> &Profile
pub fn store_name(&self) -> &'static str
pub async fn login(&self) -> Result<Token>
pub async fn token(&self) -> Result<Token>
pub async fn token_or_login(&self) -> Result<Token>
pub async fn force_refresh(&self) -> Result<Token>
pub async fn logout(&self) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for AuthClient
impl !UnwindSafe for AuthClient
impl Freeze for AuthClient
impl Send for AuthClient
impl Sync for AuthClient
impl Unpin for AuthClient
impl UnsafeUnpin for AuthClient
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