pub struct FilePersistence { /* private fields */ }Implementations§
Source§impl FilePersistence
impl FilePersistence
pub fn new(base_dir: PathBuf) -> InstallationsResult<Self>
pub fn default() -> InstallationsResult<Self>
Trait Implementations§
Source§impl Clone for FilePersistence
impl Clone for FilePersistence
Source§fn clone(&self) -> FilePersistence
fn clone(&self) -> FilePersistence
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilePersistence
impl Debug for FilePersistence
Source§impl InstallationsPersistence for FilePersistence
impl InstallationsPersistence for FilePersistence
fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
app_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = InstallationsResult<Option<PersistedInstallation>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
app_name: &'life1 str,
entry: &'life2 PersistedInstallation,
) -> Pin<Box<dyn Future<Output = InstallationsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn clear<'life0, 'life1, 'async_trait>(
&'life0 self,
app_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = InstallationsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn try_acquire_registration_lock<'life0, 'life1, 'async_trait>(
&'life0 self,
app_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = InstallationsResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn release_registration_lock<'life0, 'life1, 'async_trait>(
&'life0 self,
app_name: &'life1 str,
) -> Pin<Box<dyn Future<Output = InstallationsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for FilePersistence
impl RefUnwindSafe for FilePersistence
impl Send for FilePersistence
impl Sync for FilePersistence
impl Unpin for FilePersistence
impl UnwindSafe for FilePersistence
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