Struct radegast::ClientBuilder
source · pub struct ClientBuilder<'a> { /* private fields */ }
Implementations§
source§impl<'a> ClientBuilder<'a>
impl<'a> ClientBuilder<'a>
sourcepub fn with_runtime(self, rt: &'a Runtime) -> Self
pub fn with_runtime(self, rt: &'a Runtime) -> Self
Force http client to use given runtime over default tokio runtime.
sourcepub fn with_reqwest_client(self, client: Client) -> Self
pub fn with_reqwest_client(self, client: Client) -> Self
Change underline reqwest::Client
instance to given.
By default radegast
create a default reqwest::Client
.
Trait Implementations§
source§impl<'a> Default for ClientBuilder<'a>
impl<'a> Default for ClientBuilder<'a>
source§fn default() -> ClientBuilder<'a>
fn default() -> ClientBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ClientBuilder<'a>
impl<'a> Send for ClientBuilder<'a>
impl<'a> Sync for ClientBuilder<'a>
impl<'a> Unpin for ClientBuilder<'a>
impl<'a> !UnwindSafe for ClientBuilder<'a>
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