pub struct ReqwestFetcher { /* private fields */ }Expand description
基于 reqwest + rustls + cookie_store 的默认取页实现(含限速与重试)。
Implementations§
Source§impl ReqwestFetcher
impl ReqwestFetcher
Sourcepub fn new(source: &BookSource) -> Result<Self, FetchError>
pub fn new(source: &BookSource) -> Result<Self, FetchError>
依据书源的 http 配置构建客户端(默认头、静态 cookie、超时)。
Trait Implementations§
Source§impl Fetcher for ReqwestFetcher
impl Fetcher for ReqwestFetcher
Auto Trait Implementations§
impl !Freeze for ReqwestFetcher
impl !RefUnwindSafe for ReqwestFetcher
impl Send for ReqwestFetcher
impl Sync for ReqwestFetcher
impl Unpin for ReqwestFetcher
impl UnsafeUnpin for ReqwestFetcher
impl !UnwindSafe for ReqwestFetcher
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