Docs.rs
  • app-task-0.2.0
    • app-task 0.2.0
    • Docs.rs crate page
    • MIT
    • Links
    • crates.io
    • Source
    • Owners
    • Dzejkop
    • Dependencies
      • futures ^0.3 normal
      • tokio ^1 normal
      • tracing ^0.1 normal
      • eyre ^0.6 dev
      • tokio ^1 dev
      • tracing-subscriber ^0.3 dev
    • Versions
    • 4% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

app_task0.2.0

StrategyFactory

Required Associated Types

  • Strategy

Required Methods

  • create_strategy

Implementors

In app_task::backoff_strategy

Trait app_task::backoff_strategy::StrategyFactory

source ·
pub trait StrategyFactory: Send + Sync {
    type Strategy: BackoffStrategy;

    // Required method
    fn create_strategy(&self) -> Self::Strategy;
}

Required Associated Types§

source

type Strategy: BackoffStrategy

Required Methods§

source

fn create_strategy(&self) -> Self::Strategy

Implementors§

source§

impl StrategyFactory for ContantTimeFactory

source§

type Strategy = ConstantTimeBackoff

source§

impl StrategyFactory for ThresholdBucketsFactory

source§

type Strategy = ThresholdBucketsBackoff

source§

impl<S> StrategyFactory for DefaultStrategyFactory<S>
where S: Default + BackoffStrategy,

source§

type Strategy = S