pub struct DocService { /* private fields */ }Expand description
Implementations§
Source§impl DocService
impl DocService
Sourcepub fn with_config(
cache: Arc<dyn Cache>,
cache_config: &CacheConfig,
) -> Result<Self>
pub fn with_config( cache: Arc<dyn Cache>, cache_config: &CacheConfig, ) -> Result<Self>
Sourcepub fn with_full_config(
cache: Arc<dyn Cache>,
cache_config: &CacheConfig,
perf_config: &PerformanceConfig,
) -> Result<Self>
pub fn with_full_config( cache: Arc<dyn Cache>, cache_config: &CacheConfig, perf_config: &PerformanceConfig, ) -> Result<Self>
Sourcepub fn client(&self) -> &ClientWithMiddleware
pub fn client(&self) -> &ClientWithMiddleware
获取 HTTP 客户端(带重试中间件)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DocService
impl !RefUnwindSafe for DocService
impl Send for DocService
impl Sync for DocService
impl Unpin for DocService
impl UnsafeUnpin for DocService
impl !UnwindSafe for DocService
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