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
Copy file name to clipboardExpand all lines: src/websocket_core.rs
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -66,20 +66,14 @@ impl Auto {
66
66
#[derive(Debug,Clone,Copy)]
67
67
#[doc(hidden)]
68
68
pubstructConnectionState{
69
-
/// If the user sends a close frame, we should not send a close frame back.
70
-
///
71
69
/// Must be set to `true` if the user sends a close frame or the other side sends a close frame.
72
70
///
73
-
/// If the connection is closed, every read will return `None` and every write will return a [`WriteError::ConnectionClosed`].
71
+
/// If the connection is closed, every write will return a [`WriteError::ConnectionClosed`].
74
72
pubclosed:bool,
75
73
/// Auto handling of ping/pong and close frames.
76
74
auto:Auto,
77
75
}
78
76
79
-
// TODO: Set ConnectionState.closed to true if the user sends a close frame or the other side sends a close frame.
80
-
// TODO: If ConnectionState.closed: Every read will then return (None, means connection closed) and every write will return a write error with ConnectionClosed.
81
-
// TODO: And then add the tests for that. If the user closes the connection or the server closed the connection, and then the user tries to read or write a frame
0 commit comments