failsafe-rs:Rust 的断路器实现-源码

上传者: 42168902 | 上传时间: 2021-08-05 16:04:19 | 文件大小: 33KB | 文件类型: ZIP
故障安全 一种断路器实现,用于检测故障并封装防止故障不断发生、维护期间、临时外部系统故障或意外系统困难的逻辑。 特征 同时使用Fn() -> Result和Future (通过默认的futures-support功能可选)。 退避策略: constant 、 exponential 、 equal_jittered 、 full_jittered 故障检测策略: consecutive_failures , success_rate_over_time_window 最低防锈版本:1.45 用法 将此添加到您的 Cargo.toml: failsafe = " 1.1.0 " 例子 使用默认退避策略和失败累积策略。 use failsafe :: {Config, CircuitBreaker, Error}; // A function that sometimes fa

文件下载

资源详情

[{"title":"( 26 个子文件 33KB ) failsafe-rs:Rust 的断路器实现-源码","children":[{"title":"failsafe-rs-master","children":[{"title":"Cargo.toml <span style='color:#111;'> 913B </span>","children":null,"spread":false},{"title":"Cargo.lock <span style='color:#111;'> 22.65KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"instrument.rs <span style='color:#111;'> 728B </span>","children":null,"spread":false},{"title":"failure_policy.rs <span style='color:#111;'> 14.45KB </span>","children":null,"spread":false},{"title":"error.rs <span style='color:#111;'> 747B </span>","children":null,"spread":false},{"title":"backoff.rs <span style='color:#111;'> 7.50KB </span>","children":null,"spread":false},{"title":"config.rs <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"windowed_adder.rs <span style='color:#111;'> 6.62KB </span>","children":null,"spread":false},{"title":"clock.rs <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"state_machine.rs <span style='color:#111;'> 11.82KB </span>","children":null,"spread":false},{"title":"circuit_breaker.rs <span style='color:#111;'> 3.88KB </span>","children":null,"spread":false},{"title":"futures","children":[{"title":"mod.rs <span style='color:#111;'> 6.93KB </span>","children":null,"spread":false}],"spread":true},{"title":"lib.rs <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"failure_predicate.rs <span style='color:#111;'> 847B </span>","children":null,"spread":false},{"title":"ema.rs <span style='color:#111;'> 4.02KB </span>","children":null,"spread":false}],"spread":false},{"title":".circleci","children":[{"title":"config.yml <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false},{"title":"cache-key <span style='color:#111;'> 346B </span>","children":null,"spread":false},{"title":"cargo-lint <span style='color:#111;'> 534B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":".appveyor.yml <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 22B </span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false},{"title":"benches","children":[{"title":"windowed_adder.rs <span style='color:#111;'> 582B </span>","children":null,"spread":false},{"title":"state_machine.rs <span style='color:#111;'> 1.45KB </span>","children":null,"spread":false},{"title":"circuit_breaker.rs <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"futures.rs <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明