pub enum Request {
Search {
opts: SearchOptions,
pattern: String,
},
Find {
needle: String,
after: Option<String>,
limit: u32,
},
Status,
Watch,
Shutdown,
CursorStore {
blob: Vec<u8>,
},
CursorTake {
token: String,
},
}Variants§
Search
Content search: render path:line:text for pattern.
Find
File/dir name lookup (fd/find-style). after resumes a keyset page: only paths strictly
greater than it are returned (empty/None = from the start).
Status
Index health summary.
Watch
Subscribe to live status: the daemon streams a fresh status frame on each change (and a periodic heartbeat) until the client disconnects.
Shutdown
Ask the daemon to exit.
CursorStore
Park a pagination cursor blob; the daemon replies with a short opaque token.
CursorTake
Redeem a pagination token; the daemon replies with the blob, or an empty frame if it has expired or was already used.
Trait Implementations§
impl Eq for Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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