pub struct DeboaBuilder { /* private fields */ }Expand description
Struct that represents the Deboa builder.
§Fields
retries- The number of retries.connection_timeout- The connection timeout.request_timeout- The request timeout.catchers- The catchers.protocol- The protocol to use.
Implementations§
Source§impl DeboaBuilder
impl DeboaBuilder
Sourcepub fn connection_timeout(self, connection_timeout: u64) -> Self
pub fn connection_timeout(self, connection_timeout: u64) -> Self
Allow set request connection timeout at any time.
§Arguments
connection_timeout- The new connection timeout.
Sourcepub fn request_timeout(self, request_timeout: u64) -> Self
pub fn request_timeout(self, request_timeout: u64) -> Self
Allow set request request timeout at any time.
§Arguments
request_timeout- The new request timeout.
Sourcepub fn catch<C: DeboaCatcher>(self, catcher: C) -> Self
pub fn catch<C: DeboaCatcher>(self, catcher: C) -> Self
Sourcepub fn protocol(self, protocol: HttpVersion) -> Self
pub fn protocol(self, protocol: HttpVersion) -> Self
Auto Trait Implementations§
impl Freeze for DeboaBuilder
impl !RefUnwindSafe for DeboaBuilder
impl Send for DeboaBuilder
impl Sync for DeboaBuilder
impl Unpin for DeboaBuilder
impl !UnwindSafe for DeboaBuilder
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