Skip to content

Commit

Permalink
fix(socket/ack): make AckResultWithId public
Browse files Browse the repository at this point in the history
  • Loading branch information
Totodore authored Jan 2, 2024
1 parent 5803cc7 commit 5174e35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion socketioxide/src/ack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ pub struct AckResponse<T> {
pub(crate) type AckResult<T = Value> = Result<AckResponse<T>, AckError>;

pin_project_lite::pin_project! {
struct AckResultWithId<T> {
/// A [`Future`] of [`AckResponse`] received from the client with its corresponding [`Sid`].
/// It is used internally by [`AckStream`] and **should not** be used directly.
pub struct AckResultWithId<T> {
id: Sid,
#[pin]
result: Timeout<Receiver<AckResult<T>>>,
Expand Down

0 comments on commit 5174e35

Please sign in to comment.