pub struct OnedriveState {
pub config: OnedriveConfig,
pub access_token: Arc<Mutex<String>>,
pub expires_at: Arc<Mutex<i64>>,
pub my_drive_id: String,
}
Fields§
§config: OnedriveConfig
§access_token: Arc<Mutex<String>>
§expires_at: Arc<Mutex<i64>>
§my_drive_id: String
Trait Implementations§
Source§impl CloudDriver<OnedriveConfig, OnedriveState> for OnedriveDriver
impl CloudDriver<OnedriveConfig, OnedriveState> for OnedriveDriver
Source§fn new<'async_trait>(
state: OnedriveState,
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where
Self: 'async_trait,
fn new<'async_trait>(
state: OnedriveState,
) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>where
Self: 'async_trait,
Create a new instance of the driver.
Source§fn load_config<'async_trait>(
config: OnedriveConfig,
) -> Pin<Box<dyn Future<Output = OnedriveState> + Send + 'async_trait>>
fn load_config<'async_trait>( config: OnedriveConfig, ) -> Pin<Box<dyn Future<Output = OnedriveState> + Send + 'async_trait>>
If
Config
is State
, returns Config
directly.fn reload_vfs<'life0, 'async_trait>(
state: &'life0 OnedriveState,
) -> Pin<Box<dyn Future<Output = Result<CombinableDir<StaticCombinableFile>, String>> + Send + 'async_trait>>where
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for OnedriveState
impl !RefUnwindSafe for OnedriveState
impl Send for OnedriveState
impl Sync for OnedriveState
impl Unpin for OnedriveState
impl !UnwindSafe for OnedriveState
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