pub enum ReqwestClientConfig {
Default,
Custom(Client),
}Available on crate feature
reqwest only.Expand description
Which reqwest::Client OctocrabBuilder::build_with_reqwest should
use.
Variants§
Default
Build a fresh reqwest::Client, honoring this builder’s
set_connect_timeout/set_read_timeout settings (see
OctocrabBuilder::set_connect_timeout and
OctocrabBuilder::set_read_timeout). Note that reqwest has no
separate write timeout, so set_write_timeout is not applied here.
Custom(Client)
Use this caller-provided, already-configured reqwest::Client.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ReqwestClientConfig
impl !UnwindSafe for ReqwestClientConfig
impl Freeze for ReqwestClientConfig
impl Send for ReqwestClientConfig
impl Sync for ReqwestClientConfig
impl Unpin for ReqwestClientConfig
impl UnsafeUnpin for ReqwestClientConfig
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