pub struct PreparedScopeQuery<'request> { /* private fields */ }Expand description
A complete scope query validated before local environment capture.
Preparation binds the immutable request, not loaded documents or a cached search matcher. The same prepared request may use an explicit host snapshot.
Implementations§
Source§impl<'request> PreparedScopeQuery<'request>
impl<'request> PreparedScopeQuery<'request>
Sourcepub fn new(
request: &'request ScopeQueryRequest,
) -> Result<Self, ScopeQueryError>
pub fn new( request: &'request ScopeQueryRequest, ) -> Result<Self, ScopeQueryError>
Validate roots, traversal and the projection without local IO.
§Errors
Returns scope, selector or query configuration failures.
Sourcepub const fn request(&self) -> &'request ScopeQueryRequest
pub const fn request(&self) -> &'request ScopeQueryRequest
The immutable scope request whose roots and view were validated together.
Sourcepub fn execute(
&self,
resolver: &DocumentResolver,
) -> Result<ScopeQueryResponse, ScopeQueryError>
pub fn execute( &self, resolver: &DocumentResolver, ) -> Result<ScopeQueryResponse, ScopeQueryError>
Load and query against the supplied snapshot using the shared pipeline.
§Errors
Returns scope loading, mapping or pure query execution failures.
Auto Trait Implementations§
impl<'request> Freeze for PreparedScopeQuery<'request>
impl<'request> RefUnwindSafe for PreparedScopeQuery<'request>
impl<'request> Send for PreparedScopeQuery<'request>
impl<'request> Sync for PreparedScopeQuery<'request>
impl<'request> Unpin for PreparedScopeQuery<'request>
impl<'request> UnsafeUnpin for PreparedScopeQuery<'request>
impl<'request> UnwindSafe for PreparedScopeQuery<'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