pub enum EngineCommand {
Search {
query: String,
limit: usize,
reply: Sender<Vec<SearchResult>>,
},
Exec {
id: String,
execute_process: bool,
reply: Sender<Result<(), String>>,
},
Reload {
reply: Sender<usize>,
},
Shutdown {
reply: Sender<()>,
},
}Expand description
Commands sent from async Tokio tasks across the thread boundary to the synchronous actor thread.
Variants§
Search
Update query, tick Nucleo matcher, and return up to limit ranked results.
Exec
Record frecency usage for id and optionally spawn its underlying action.
Reload
Rescan desktop directories and reload entries.
Shutdown
Persist frecency state and terminate the actor loop cleanly.
Auto Trait Implementations§
impl !RefUnwindSafe for EngineCommand
impl !UnwindSafe for EngineCommand
impl Forget for EngineCommand
impl Freeze for EngineCommandwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Inner<Vec<SearchResult>>> is !null: Freeze,
PhantomData<ArcInner<Inner<Vec<SearchResult>>>>: Freeze,
*const ArcInner<Inner<Result<(), String>>> is !null: Freeze,
PhantomData<ArcInner<Inner<Result<(), String>>>>: Freeze,
*const ArcInner<Inner<usize>> is !null: Freeze,
PhantomData<ArcInner<Inner<usize>>>: Freeze,
*const ArcInner<Inner<()>> is !null: Freeze,
PhantomData<ArcInner<Inner<()>>>: Freeze,
impl Move for EngineCommand
impl Send for EngineCommand
impl Sync for EngineCommand
impl Unpin for EngineCommand
impl UnsafeUnpin for EngineCommandwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Inner<Vec<SearchResult>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner<Vec<SearchResult>>>>: UnsafeUnpin,
*const ArcInner<Inner<Result<(), String>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner<Result<(), String>>>>: UnsafeUnpin,
*const ArcInner<Inner<usize>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner<usize>>>: UnsafeUnpin,
*const ArcInner<Inner<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner<()>>>: UnsafeUnpin,
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