You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(server)!: convert display traits to ServerResult, drop anyhow dep
Final step of the staged migration started in #1242, continued in
Public API changes:
RdpServerDisplay::updates
-> Result<Box<dyn RdpServerDisplayUpdates>, anyhow::Error>
=> ServerResult<Box<dyn RdpServerDisplayUpdates>>
RdpServerDisplayUpdates::next_update
-> Result<Option<DisplayUpdate>, anyhow::Error>
=> ServerResult<Option<DisplayUpdate>>
These are breaking changes for handler implementations of the two
display traits.
Internal changes:
- The from_anyhow private bridge and the AnyhowError wrapper struct
in error.rs are removed.
- The anyhow dependency is removed from ironrdp-server/Cargo.toml.
- builder.rs's NoopDisplayUpdates / NoopDisplay impls and the
docstring example in display.rs and README.md are updated to match
the new trait shapes.
- The example in crates/ironrdp/examples/server.rs and the integration
test in crates/ironrdp-testsuite-extra/tests/main.rs are updated to
return ServerResult from their RdpServerDisplay/Updates impls.
- benches/src/perfenc.rs is updated to construct ServerError variants
instead of anyhow::Error and converts at its own anyhow::Result main
boundary via .map_err(|e| anyhow::anyhow!(e)).
After this commit, ironrdp-server has no anyhow dependency and the
public surface is fully typed against ServerError. Closes#1209.
0 commit comments