pub struct BulkheadBuilder { /* private fields */ }
Expand description
A builder type for a Bulkhead
Implementations§
Source§impl BulkheadBuilder
impl BulkheadBuilder
Sourcepub fn max_concurrent_calls(self, max_concurrent_calls: usize) -> Self
pub fn max_concurrent_calls(self, max_concurrent_calls: usize) -> Self
Specifies the maximum number of concurrent calls the bulkhead will allow.
Defaults to 25.
Sourcepub fn max_wait_duration(self, max_wait_duration: Duration) -> Self
pub fn max_wait_duration(self, max_wait_duration: Duration) -> Self
Specifies the maximum wait duration for the bulkhead’s semaphore guard to be acquired.
Defaults to Duration::from_millis(1)
.
Trait Implementations§
Source§impl Clone for BulkheadBuilder
impl Clone for BulkheadBuilder
Source§fn clone(&self) -> BulkheadBuilder
fn clone(&self) -> BulkheadBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BulkheadBuilder
impl Debug for BulkheadBuilder
Source§impl Default for BulkheadBuilder
impl Default for BulkheadBuilder
impl Copy for BulkheadBuilder
Auto Trait Implementations§
impl Freeze for BulkheadBuilder
impl RefUnwindSafe for BulkheadBuilder
impl Send for BulkheadBuilder
impl Sync for BulkheadBuilder
impl Unpin for BulkheadBuilder
impl UnwindSafe for BulkheadBuilder
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