push
github
Sender generic over typestate (#728) This commit updates the `v2::Sender` to be generic over its typestate (e.g., `V2GetContext`, `V2PostContext`, etc.). The motivation is outlined in https://github.com/0xBEEFCAF3/rust-payjoin/commit/c8b860d95 This commit renames the original `Sender` struct to `WithReplyKey`. This type now represents the v2::sender session once the HPKE context has been created. The `Sender` name is re-purposed for the new generic wrapper over typestate. For the UniFFI exported receiver we monomorphize the exported structs over a specific typestate. UniFFI doesn't support exporting generic structs, so we expose a concrete type to the FFI.
57 of 60 new or added lines in 6 files covered. (95.0%)
1 existing line in 1 file now uncovered.6635 of 7819 relevant lines covered (84.86%)
593.4 hits per line