pub struct Identity { /* private fields */ }Implementations§
Source§impl Identity
impl Identity
pub async fn try_new( identity_provider_url: String, client_data: ClientData, ) -> Result<Identity, Error>
pub async fn try_get_token(&self) -> Result<Arc<Token>, Error>
pub async fn renew_token_if_expiring_after_seconds( &self, token: Arc<Token>, expiring_after_seconds: u64, ) -> Result<Arc<Token>, Error>
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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