pub struct DocumentResolver { /* private fields */ }Expand description
One explicit local document-environment snapshot.
Implementations§
Source§impl DocumentResolver
impl DocumentResolver
Sourcepub fn from_system() -> Self
pub fn from_system() -> Self
Capture the native manual index and lazily snapshot Markdown registration.
Sourcepub fn resolve(
&self,
request: &QueryRequest,
policy: QueryPolicy,
) -> Result<QueryBundle, QueryError>
pub fn resolve( &self, request: &QueryRequest, policy: QueryPolicy, ) -> Result<QueryBundle, QueryError>
Validate and resolve one request against this environment snapshot.
Reusing a resolver keeps manual and registered-document precedence stable across related operations. Construct a new resolver to refresh filesystem discovery.
§Errors
Returns QueryError for invalid input or unreadable local content.
Sourcepub fn execute(
&self,
request: &QueryRequest,
policy: QueryPolicy,
) -> Result<QueryViewResult, QueryExecutionError>
pub fn execute( &self, request: &QueryRequest, policy: QueryPolicy, ) -> Result<QueryViewResult, QueryExecutionError>
Resolve and materialize the request’s encoded view.
§Errors
Returns a typed loading, projection, or search failure.
Auto Trait Implementations§
impl !Freeze for DocumentResolver
impl RefUnwindSafe for DocumentResolver
impl Send for DocumentResolver
impl Sync for DocumentResolver
impl Unpin for DocumentResolver
impl UnsafeUnpin for DocumentResolver
impl UnwindSafe for DocumentResolver
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