refactor(lib): export the ConnectionType parse error and document what hosts can still match

This commit is contained in:
Michel de Graaf
2026-09-08 01:45:02 +02:00
parent 07dd163156
commit 976dd706d7
3 changed files with 4 additions and 6 deletions
+3 -3
View File
@@ -115,6 +115,6 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
}
```
`ServerMessage` and `ClientOperation` are `#[non_exhaustive]`: every protocol
message the client learns to handle adds a variant, so match them with a
wildcard arm.
`ClientOperation` is `#[non_exhaustive]`: every protocol message the client
learns to handle adds a variant, so match it with a wildcard arm. `SharedFile`
is too, so build it with the `..` syntax rather than listing every field.