Struct mega::ClientBuilder
source · pub struct ClientBuilder { /* private fields */ }Expand description
A builder to initialize a Client instance.
Implementations§
source§impl ClientBuilder
impl ClientBuilder
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a default ClientBuilder.
sourcepub fn max_retries(self, amount: usize) -> Self
pub fn max_retries(self, amount: usize) -> Self
Sets the maximum amount of retries.
sourcepub fn min_retry_delay(self, delay: Duration) -> Self
pub fn min_retry_delay(self, delay: Duration) -> Self
Sets the minimum delay duration between retries.
sourcepub fn max_retry_delay(self, delay: Duration) -> Self
pub fn max_retry_delay(self, delay: Duration) -> Self
Sets the maximum delay duration between retries.
sourcepub fn timeout(self, duration: Option<Duration>) -> Self
pub fn timeout(self, duration: Option<Duration>) -> Self
Sets the timeout duration to use for each request.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin 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