pub struct TaskManager<S: DataStore<DataStoreKey>> {
pub event_tx: Sender<TraversalEvent>,
pub event_rx: Receiver<TraversalEvent>,
pub is_working: bool,
/* private fields */
}Fields§
§event_tx: Sender<TraversalEvent>§event_rx: Receiver<TraversalEvent>§is_working: boolImplementations§
Source§impl<S: DataStore<DataStoreKey>> TaskManager<S>
impl<S: DataStore<DataStoreKey>> TaskManager<S>
pub fn new() -> Self
pub fn is_done(&self) -> bool
pub fn start(&mut self, input: Vec<DataStoreKey>, logger: &mut Logger)
pub fn process_results(&mut self, store: &mut S, logger: &mut Logger)
pub fn process_path_sync( &self, store: &mut S, path: &DataStoreKey, ) -> Vec<DataStoreKey> ⓘ
pub fn iter_from_path( root_path: &PathBuf, ) -> WalkDirGeneric<((), Option<Result<EntryState, Error>>)>
Trait Implementations§
Source§impl<S: Debug + DataStore<DataStoreKey>> Debug for TaskManager<S>
impl<S: Debug + DataStore<DataStoreKey>> Debug for TaskManager<S>
Source§impl<S: DataStore<DataStoreKey>> Default for TaskManager<S>
impl<S: DataStore<DataStoreKey>> Default for TaskManager<S>
Auto Trait Implementations§
impl<S> Freeze for TaskManager<S>
impl<S> RefUnwindSafe for TaskManager<S>where
S: RefUnwindSafe,
impl<S> Send for TaskManager<S>where
S: Send,
impl<S> Sync for TaskManager<S>where
S: Sync,
impl<S> Unpin for TaskManager<S>where
S: Unpin,
impl<S> UnsafeUnpin for TaskManager<S>
impl<S> UnwindSafe for TaskManager<S>where
S: UnwindSafe,
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> 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