Commit 2d66079
committed
refactor: prevent future RpcError variants from breaking downstream matches
Marks `RpcError` `#[non_exhaustive]` so adding a new operational variant
no longer forces a major-version bump on consumers. Exhaustive matches
over `RpcError` written in a downstream crate now need a wildcard
(`_ => ...`) arm; in exchange, future variant additions (further
per-endpoint health/quota signals, follow-ons to the `ConflictingRateLimit`
variant added in this release, etc.) stop being breaking changes at this
boundary. Aligns the discipline already in place on the peer public
provider-surface types `RpcConfig` and `ChainEndpoint`.
Closes #62.1 parent 4e95938 commit 2d66079
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
52 | 63 | | |
53 | 64 | | |
54 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
83 | 93 | | |
| 94 | + | |
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
| |||
0 commit comments