Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refacto: new Client API #248

Merged
merged 31 commits into from
Mar 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
831415f
feat(lib): add `Result` specialized type for public API
creberust Feb 2, 2024
8bcc9a5
refacto(client): change return type from `io::Result<Response>` to `i…
creberust Feb 2, 2024
2b678c5
refacto(client: sync): change return type from `io::Result<Response>`…
creberust Feb 2, 2024
ff7753a
refacto(service): update `tcp` client with new API
creberust Feb 2, 2024
cf61b8f
refacto(service): update `rtu` client with new API
creberust Feb 2, 2024
a708092
tests: update `Exception` integration test with new client API
creberust Feb 2, 2024
ed9aa22
examples: update clients with the new API
creberust Feb 2, 2024
bfc06df
fix: clippy warnings
creberust Feb 2, 2024
9a28c95
refacto(client): only import `std::io`, not full path
creberust Feb 5, 2024
41afe94
refacto(service): only import `std::io`, not full path
creberust Feb 5, 2024
289b4f0
refacto(examples): updated `tcp-server` with new `Client` API
creberust Feb 9, 2024
6f22254
refacto(examples): updated `tls-server` with new `Client` API
creberust Feb 9, 2024
4368d78
refacto(examples): updated `rtu-over-tcp-server` with new `Client` API
creberust Feb 13, 2024
dec1a97
refacto(examples): updated `rtu-server` with new `Client` API
creberust Feb 13, 2024
94e7755
refacto(examples): updated `rtu-server-address` with new `Client` API
creberust Feb 13, 2024
484f21f
refacto(lib): add `Result` type alias
creberust Feb 14, 2024
a002568
refacto: update `crate::Result` to `Result`
creberust Feb 14, 2024
3176718
examples(tls-client): fix clippy warning
creberust Feb 14, 2024
3e0d8d6
docs(changelog): add CHANGELOG entries
creberust Feb 19, 2024
b8ce59d
docs(changelog): fix indentation
creberust Feb 19, 2024
9a880cd
docs(changelog): add missing code blocks context
creberust Feb 19, 2024
5ca95c0
refacto(service): move `verify_response_header` in parent mod
creberust Feb 22, 2024
988bbc7
docs(client): add comments explaining why we can use `unreachable` in…
creberust Feb 22, 2024
e811b18
docs(client): improve error message if `unreachable` is reached
creberust Feb 22, 2024
3289858
feat(error): add helper function to generate error message
creberust Feb 22, 2024
0e33be3
refacto(client): call helper function to generate the error message
creberust Feb 22, 2024
164082d
fix(error): remove trailing whitespaces
creberust Feb 22, 2024
ae698ce
Merge branch 'main' into refacto-client-api
uklotzde Mar 9, 2024
6d2c31c
Fix clippy issues for --no-default-features
uklotzde Mar 9, 2024
84d419e
Merge pull request #1 from uklotzde/refacto-client-api
creberust Mar 11, 2024
fcc1510
doc(changelog): apply suggestion to changelog to improve wording
creberust Mar 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: clippy warnings
creberust committed Feb 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit bfc06df33b68f29327a1e862b4143003fc79d5a6
1 change: 1 addition & 0 deletions examples/rtu-over-tcp-server.rs
Original file line number Diff line number Diff line change
@@ -175,6 +175,7 @@ async fn client_context(socket_addr: SocketAddr) {
println!("CLIENT: Writing 2 holding registers...");
ctx.write_multiple_registers(0x01, &[7777, 8888])
.await
.unwrap()
.unwrap();

// Read back a block including the two registers we wrote.
1 change: 1 addition & 0 deletions examples/tcp-server.rs
Original file line number Diff line number Diff line change
@@ -175,6 +175,7 @@ async fn client_context(socket_addr: SocketAddr) {
println!("CLIENT: Writing 2 holding registers...");
ctx.write_multiple_registers(0x01, &[7777, 8888])
.await
.unwrap()
.unwrap();

// Read back a block including the two registers we wrote.
1 change: 1 addition & 0 deletions examples/tls-server.rs
Original file line number Diff line number Diff line change
@@ -278,6 +278,7 @@ async fn client_context(socket_addr: SocketAddr) {
println!("CLIENT: Writing 2 holding registers...");
ctx.write_multiple_registers(0x01, &[7777, 8888])
.await
.unwrap()
.unwrap();

// Read back a block including the two registers we wrote.