pub struct ExecutorBuilder { /* private fields */ }Expand description
Builder for creating configured executors
Implementations§
Source§impl ExecutorBuilder
impl ExecutorBuilder
pub fn new() -> Self
pub fn timeout(self, timeout: Duration) -> Self
pub fn max_concurrent(self, max: usize) -> Self
pub fn retry_policy(self, policy: RetryPolicy) -> Self
pub fn circuit_breaker(self, failure_threshold: u32, timeout: Duration) -> Self
pub fn enable_tracing(self, enable: bool) -> Self
pub fn build(self) -> Executor
Trait Implementations§
Source§impl Default for ExecutorBuilder
impl Default for ExecutorBuilder
Source§fn default() -> ExecutorBuilder
fn default() -> ExecutorBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExecutorBuilder
impl !RefUnwindSafe for ExecutorBuilder
impl Send for ExecutorBuilder
impl Sync for ExecutorBuilder
impl Unpin for ExecutorBuilder
impl !UnwindSafe for ExecutorBuilder
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