pub struct StrategyBuilder { /* private fields */ }Expand description
Builder for composing multiple polling strategies
Implementations§
Source§impl StrategyBuilder
impl StrategyBuilder
Sourcepub fn apply<S, Stm>(self, strategy: S) -> Self
pub fn apply<S, Stm>(self, strategy: S) -> Self
Apply a polling strategy to the builder Strategies are executed in the order they are added, with the first strategy having the highest priority In case of multiple strategies being ready at the same time, the first one added will be chosen
Sourcepub fn build(self) -> MultiStrategy
pub fn build(self) -> MultiStrategy
Build the MultiStrategy from the builder Consumes the builder and returns a MultiStrategy The MultiStrategy will contain all the strategies added to the builder
Trait Implementations§
Source§impl Debug for StrategyBuilder
impl Debug for StrategyBuilder
Auto Trait Implementations§
impl Freeze for StrategyBuilder
impl !RefUnwindSafe for StrategyBuilder
impl Send for StrategyBuilder
impl Sync for StrategyBuilder
impl Unpin for StrategyBuilder
impl !UnwindSafe for StrategyBuilder
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