pub struct Deboa { /* private fields */ }Expand description
Struct that represents the Deboa instance.
§Fields
connection_timeout- The connection timeout.request_timeout- The request timeout.catchers- The catchers.protocol- The protocol to use.pool- The connection pool.
Implementations§
Source§impl Deboa
impl Deboa
Sourcepub fn builder() -> DeboaBuilder
pub fn builder() -> DeboaBuilder
Sourcepub fn protocol(&self) -> &HttpVersion
pub fn protocol(&self) -> &HttpVersion
Sourcepub fn set_protocol(&mut self, protocol: HttpVersion) -> &mut Self
pub fn set_protocol(&mut self, protocol: HttpVersion) -> &mut Self
Sourcepub fn connection_timeout(&self) -> u64
pub fn connection_timeout(&self) -> u64
Sourcepub fn set_connection_timeout(&mut self, timeout: u64) -> &mut Self
pub fn set_connection_timeout(&mut self, timeout: u64) -> &mut Self
Sourcepub fn request_timeout(&self) -> u64
pub fn request_timeout(&self) -> u64
Sourcepub fn set_request_timeout(&mut self, timeout: u64) -> &mut Self
pub fn set_request_timeout(&mut self, timeout: u64) -> &mut Self
Sourcepub fn catch<C: DeboaCatcher>(&mut self, catcher: C) -> &mut Self
pub fn catch<C: DeboaCatcher>(&mut self, catcher: C) -> &mut Self
Sourcepub async fn execute<R>(
&mut self,
request: R,
) -> Result<DeboaResponse, DeboaError>where
R: IntoRequest,
pub async fn execute<R>(
&mut self,
request: R,
) -> Result<DeboaResponse, DeboaError>where
R: IntoRequest,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Deboa
impl !RefUnwindSafe for Deboa
impl Send for Deboa
impl Sync for Deboa
impl Unpin for Deboa
impl !UnwindSafe for Deboa
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