pub trait StorageAdapter: Send + Sync {
// Required methods
fn load<'life0, 'async_trait>(
&'life0 self,
profile: String,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, DatabricksAuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn prepare_write<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), DatabricksAuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn save<'life0, 'async_trait>(
&'life0 self,
profile: String,
token: String,
) -> Pin<Box<dyn Future<Output = Result<(), DatabricksAuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn remove<'life0, 'async_trait>(
&'life0 self,
profile: String,
) -> Pin<Box<dyn Future<Output = Result<(), DatabricksAuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn acquire_lock<'life0, 'async_trait>(
&'life0 self,
profile: String,
timeout_millis: u64,
) -> Pin<Box<dyn Future<Output = Result<String, DatabricksAuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn release_lock<'life0, 'async_trait>(
&'life0 self,
lease: String,
) -> Pin<Box<dyn Future<Output = Result<(), DatabricksAuthError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn name(&self) -> String;
}Required Methods§
fn load<'life0, 'async_trait>(
&'life0 self,
profile: String,
) -> Pin<Box<dyn Future<Output = Result<Option<String>, DatabricksAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn prepare_write<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), DatabricksAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save<'life0, 'async_trait>(
&'life0 self,
profile: String,
token: String,
) -> Pin<Box<dyn Future<Output = Result<(), DatabricksAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn remove<'life0, 'async_trait>(
&'life0 self,
profile: String,
) -> Pin<Box<dyn Future<Output = Result<(), DatabricksAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn acquire_lock<'life0, 'async_trait>(
&'life0 self,
profile: String,
timeout_millis: u64,
) -> Pin<Box<dyn Future<Output = Result<String, DatabricksAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn release_lock<'life0, 'async_trait>(
&'life0 self,
lease: String,
) -> Pin<Box<dyn Future<Output = Result<(), DatabricksAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn name(&self) -> String
Trait Implementations§
Source§impl<T> FfiConverterArc<T> for dyn StorageAdapter
impl<T> FfiConverterArc<T> for dyn StorageAdapter
Source§impl<T> LiftRef<T> for dyn StorageAdapter
impl<T> LiftRef<T> for dyn StorageAdapter
type LiftType = Arc<dyn StorageAdapter>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".