Commit 7b36b44
committed
feat(http/body-eos):
this commit introduces clone and copy implementations for the
`EosRef<'a, E>` type used to inspect and classify the outcome of a
request or response body.
as the documentation comment notes in the commit below, this enum only
contains immutable references to other values: a header map or an
error. other variants are empty tags.
```rust
pub enum EosRef<'a, E = Error> {
None,
Trailers(&'a HeaderMap),
Error(&'a E),
Cancelled,
}
```
this commit makes this type implicitly clonable.
Signed-off-by: katelyn martin <kate@buoyant.io>EosRef<'a, E>: Clone + Copy
1 parent 7b3f752 commit 7b36b44
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
0 commit comments