• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

databendlabs / openraft / 22817822182
88%

Build:
DEFAULT BRANCH: main
Ran 08 Mar 2026 09:02AM UTC
Jobs 1
Files 258
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Mar 2026 08:50AM UTC coverage: 87.576% (-0.02%) from 87.598%
22817822182

push

github

drmingdrmer
change: in 0.10.0: replace Responder GAT with ResponderFactory trait for type-level responder selection

Rust lacks higher-kinded types, so the previous GAT
`type Responder<T>: Responder<Self, T>` cannot be filled by a plain type
parameter in generic contexts. This replaces it with defunctionalization:
a marker type implements ResponderFactory to map (C, T) to a concrete
Responder<C, T>, avoiding the GAT entirely.

Also rename OneshotResponderOf/ProgressResponderOf to
OneshotResponderFactory/ProgressResponderFactory to match the new
ResponderFactory trait name.

Changes:
- Add `ResponderFactory` trait with GAT `Responder<C, T>` in responder/mod.rs
- Change `RaftTypeConfig::Responder` from GAT to plain associated type bounded by `ResponderFactory`
- Add `OneshotResponderFactory` and `ProgressResponderFactory` marker types
- Update `ResponderOf<C, T>` alias to resolve through factory indirection

Upgrade tip:

```
// Before:
type Responder<T> = OneshotResponder<Self, T> where T: OptionalSend + 'static;

// After:
type Responder = OneshotResponderFactory;
```

To use a custom responder, define a factory type that implements
`ResponderFactory` and set it as the `Responder` associated type:

```
struct MyResponderFactory;

impl ResponderFactory for MyResponderFactory {
    type Responder<C: RaftTypeConfig, T: OptionalSend + 'static> = MyResponder<C, T>;
}

// In your RaftTypeConfig impl:
type Responder = MyResponderFactory;
```

15839 of 18086 relevant lines covered (87.58%)

147178.53 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
90.91
-2.6% openraft/src/core/tick.rs
2
93.39
-1.65% openraft/src/replication/stream_state.rs
3
81.33
-1.81% macros/src/expand.rs
Jobs
ID Job ID Ran Files Coverage
1 22817822182.1 08 Mar 2026 09:02AM UTC 258
87.58
GitHub Action Run
Source Files on build 22817822182
  • Tree
  • List 258
  • Changed 11
  • Source Changed 8
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #22817822182
  • 903770fe on github
  • Prev Build on main (#22799994548)
  • Next Build on main (#22836653978)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc