pub enum Effect {
SpawnScan {
parent_label: String,
parent_path: PathBuf,
},
SpawnRefresh {
path: PathBuf,
},
SpawnDelete {
items: Vec<(usize, PathBuf, u64)>,
dry_run: bool,
},
EmitAfter {
dur: Duration,
msg: Msg,
},
LoadSeeds {
seeds: Vec<PathBuf>,
},
}Variants§
SpawnScan
Enumerate cache subdirectories. On completion: Msg::ScanCompleted.
SpawnRefresh
Re-stat a single cache directory. On completion: Msg::RefreshCompleted.
SpawnDelete
Delete the given items (real or dry-run). On completion: Msg::DeleteCompleted.
EmitAfter
Wait dur, then dispatch msg into the loop.
LoadSeeds
Run the top-level seed scan that populates the initial cache list.
On completion: Msg::SeedsLoaded. Dispatched once at startup so the
TUI is already drawn (with a spinner) while this work happens.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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