pub struct RustdocQueryService { /* private fields */ }Expand description
Public application boundary for rustdoc-query operations and serialization.
Implementations§
Source§impl RustdocQueryService
impl RustdocQueryService
Sourcepub fn new() -> Result<Self, ApiError>
pub fn new() -> Result<Self, ApiError>
Opens the platform’s rustdoc cache.
Set RUSTDOC_QUERY_CACHE_DIR to place the cache in an explicit
directory.
§Errors
Returns an API error when the cache directory cannot be initialized.
Sourcepub async fn overview(&self, request: OverviewRequest) -> OverviewOutcome
pub async fn overview(&self, request: OverviewRequest) -> OverviewOutcome
Orientation view for a crate root or one of its public modules.
Sourcepub async fn find(&self, request: FindRequest) -> FindOutcome
pub async fn find(&self, request: FindRequest) -> FindOutcome
Search a crate’s public surface by name, kind, module, or documentation.
Sourcepub async fn get_item(&self, request: GetItemRequest) -> GetItemOutcome
pub async fn get_item(&self, request: GetItemRequest) -> GetItemOutcome
Full public detail for one item or inherent method.
Sourcepub fn output_format(requested: Option<OutputFormat>) -> OutputFormat
pub fn output_format(requested: Option<OutputFormat>) -> OutputFormat
Resolves output_format, falling back to the schema default when omitted.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RustdocQueryService
impl !UnwindSafe for RustdocQueryService
impl Freeze for RustdocQueryService
impl Send for RustdocQueryService
impl Sync for RustdocQueryService
impl Unpin for RustdocQueryService
impl UnsafeUnpin for RustdocQueryService
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