pub struct Application { /* private fields */ }
Expand description
Application layer coordinator Manages services and provides high-level application operations
Implementations§
Source§impl Application
impl Application
Sourcepub fn with_database<F, R>(&mut self, f: F) -> Rwhere
F: FnOnce(&mut DatabaseService) -> R,
pub fn with_database<F, R>(&mut self, f: F) -> Rwhere
F: FnOnce(&mut DatabaseService) -> R,
Execute a database operation
Sourcepub fn with_sync<F, R>(&mut self, f: F) -> Rwhere
F: FnOnce(&mut SyncService<'_>) -> R,
pub fn with_sync<F, R>(&mut self, f: F) -> Rwhere
F: FnOnce(&mut SyncService<'_>) -> R,
Execute a sync operation
Sourcepub async fn sync_directory<P: AsRef<Path>>(
self,
dir_path: P,
) -> Result<Vec<SyncResult>>
pub async fn sync_directory<P: AsRef<Path>>( self, dir_path: P, ) -> Result<Vec<SyncResult>>
Convenience method to sync a directory
Auto Trait Implementations§
impl Freeze for Application
impl RefUnwindSafe for Application
impl Send for Application
impl Sync for Application
impl Unpin for Application
impl UnwindSafe for Application
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
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more