pub struct PersistentAuth { /* private fields */ }Expand description
Databricks binding facade over the shared persistent authentication lifecycle.
Implementations§
Source§impl PersistentAuth
impl PersistentAuth
Sourcepub async fn challenge(&self) -> BindingResult<()>
pub async fn challenge(&self) -> BindingResult<()>
Start an explicit login and persist the resulting credential.
Sourcepub async fn token(&self, login: Option<bool>) -> BindingResult<AccessToken>
pub async fn token(&self, login: Option<bool>) -> BindingResult<AccessToken>
True forces login, false forbids interactive login, and omission permits missing-token login.
Sourcepub async fn force_refresh_token(&self) -> BindingResult<AccessToken>
pub async fn force_refresh_token(&self) -> BindingResult<AccessToken>
Renew the stored credential even before its refresh window.
Sourcepub async fn refresh_rejected_token(
&self,
stale_access_token: String,
) -> BindingResult<AccessToken>
pub async fn refresh_rejected_token( &self, stale_access_token: String, ) -> BindingResult<AccessToken>
Reuse another caller’s replacement or renew the rejected token.
Sourcepub async fn logout(&self) -> BindingResult<()>
pub async fn logout(&self) -> BindingResult<()>
Delete the credential while holding the store’s refresh lock.
Sourcepub fn status(&self) -> DatabricksAuthStatus
pub fn status(&self) -> DatabricksAuthStatus
Return the resolved identity and active built-in storage backend.
Trait Implementations§
Source§impl<UT> LiftRef<UT> for PersistentAuth
impl<UT> LiftRef<UT> for PersistentAuth
type LiftType = Arc<PersistentAuth>
Source§impl<UT> LowerError<UT> for PersistentAuth
impl<UT> LowerError<UT> for PersistentAuth
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for PersistentAuth
impl<UT> LowerReturn<UT> for PersistentAuth
Source§type ReturnType = <Arc<PersistentAuth> as LowerReturn<UniFfiTag>>::ReturnType
type ReturnType = <Arc<PersistentAuth> as LowerReturn<UniFfiTag>>::ReturnType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(obj: Self) -> Result<Self::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl<UT> TypeId<UT> for PersistentAuth
impl<UT> TypeId<UT> for PersistentAuth
Auto Trait Implementations§
impl !RefUnwindSafe for PersistentAuth
impl !UnwindSafe for PersistentAuth
impl Freeze for PersistentAuth
impl Send for PersistentAuth
impl Sync for PersistentAuth
impl Unpin for PersistentAuth
impl UnsafeUnpin for PersistentAuth
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