pub struct BulkheadConfig {
pub max_concurrent: usize,
pub max_wait: Duration,
}Expand description
How many calls of one kind may run at once, and how long a caller waits for room.
max_concurrent of zero reads as “leave it at the default”, the same normalising Go
does. A max_wait of zero means a caller never waits: a full bulkhead refuses at once.
Fields§
§max_concurrent: usizeHow many calls of one kind may run at once.
max_wait: DurationHow long Bulkhead::acquire waits for a permit, and so how long the client’s own
gate holds a call back before refusing it.
Trait Implementations§
Source§impl Clone for BulkheadConfig
impl Clone for BulkheadConfig
Source§fn clone(&self) -> BulkheadConfig
fn clone(&self) -> BulkheadConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BulkheadConfig
impl Debug for BulkheadConfig
Source§impl Default for BulkheadConfig
impl Default for BulkheadConfig
Source§fn default() -> BulkheadConfig
fn default() -> BulkheadConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BulkheadConfig
impl RefUnwindSafe for BulkheadConfig
impl Send for BulkheadConfig
impl Sync for BulkheadConfig
impl Unpin for BulkheadConfig
impl UnsafeUnpin for BulkheadConfig
impl UnwindSafe for BulkheadConfig
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