pub struct ScheduledRequest { /* private fields */ }
Expand description
A search request for the Scheduler.
Implementations§
Source§impl ScheduledRequest
impl ScheduledRequest
Sourcepub fn new(
query: Query,
ret: Sender<Result<SearchResult, DehashedError>>,
) -> Self
pub fn new( query: Query, ret: Sender<Result<SearchResult, DehashedError>>, ) -> Self
Create a new request
The Scheduler will sent the result back through the provided channel. If sending fails, the result is dropped and the scheduler continues with the next request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScheduledRequest
impl !RefUnwindSafe for ScheduledRequest
impl Send for ScheduledRequest
impl Sync for ScheduledRequest
impl Unpin for ScheduledRequest
impl !UnwindSafe for ScheduledRequest
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