pub struct BulkOperationsManager { /* private fields */ }Expand description
Bulk operations manager
Implementations§
Source§impl BulkOperationsManager
impl BulkOperationsManager
Sourcepub async fn export_all_tasks(
&self,
db: &ThingsDatabase,
format: &str,
) -> Result<Vec<Task>>
pub async fn export_all_tasks( &self, db: &ThingsDatabase, format: &str, ) -> Result<Vec<Task>>
Sourcepub async fn bulk_update_task_status(
&self,
_db: &ThingsDatabase,
task_ids: Vec<Uuid>,
new_status: TaskStatus,
) -> Result<usize>
pub async fn bulk_update_task_status( &self, _db: &ThingsDatabase, task_ids: Vec<Uuid>, new_status: TaskStatus, ) -> Result<usize>
Bulk update task status with progress tracking
§Errors
Returns an error if the bulk update operation fails
Sourcepub async fn search_and_process_tasks(
&self,
db: &ThingsDatabase,
query: &str,
processor: impl Fn(&Task) -> Result<()> + Send + Sync + 'static,
) -> Result<Vec<Task>>
pub async fn search_and_process_tasks( &self, db: &ThingsDatabase, query: &str, processor: impl Fn(&Task) -> Result<()> + Send + Sync + 'static, ) -> Result<Vec<Task>>
Search and process tasks with progress tracking
§Errors
Returns an error if the search or processing operation fails
Sourcepub fn progress_manager(&self) -> Arc<ProgressManager>
pub fn progress_manager(&self) -> Arc<ProgressManager>
Get progress manager for external progress tracking
Sourcepub fn event_broadcaster(&self) -> Arc<EventBroadcaster>
pub fn event_broadcaster(&self) -> Arc<EventBroadcaster>
Get event broadcaster for external event handling
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BulkOperationsManager
impl !RefUnwindSafe for BulkOperationsManager
impl Send for BulkOperationsManager
impl Sync for BulkOperationsManager
impl Unpin for BulkOperationsManager
impl !UnwindSafe for BulkOperationsManager
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more