pub struct ClientBuilder { /* private fields */ }Expand description
Builder for constructing a configured Client.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn no_timeout(self) -> Self
pub fn no_timeout(self) -> Self
Disable request timeout.
Sourcepub fn connect_timeout(self, timeout: Duration) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
Set socket connection timeout.
Sourcepub fn no_connect_timeout(self) -> Self
pub fn no_connect_timeout(self) -> Self
Disable socket connection timeout.
Sourcepub fn build(self) -> Result<Client, ClientError>
pub fn build(self) -> Result<Client, ClientError>
Build the client instance.
Trait Implementations§
Source§impl Clone for ClientBuilder
impl Clone for ClientBuilder
Source§fn clone(&self) -> ClientBuilder
fn clone(&self) -> ClientBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin for ClientBuilder
impl UnwindSafe for ClientBuilder
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