generated from tipragot/rust
Non blocking relay connection #44
|
@ -15,7 +15,7 @@ use tungstenite::{ClientHandshake, HandshakeError, Message, WebSocket};
|
||||||
|
|
||||||
/// The state of a [Connection].
|
/// The state of a [Connection].
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum ConnectionState {
|
enum ConnectionState {
|
||||||
/// The [Connection] is not connected.
|
/// The [Connection] is not connected.
|
||||||
Disconnected,
|
Disconnected,
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ pub struct Connection {
|
||||||
receive_sender: Sender<(u32, Vec<u8>)>,
|
receive_sender: Sender<(u32, Vec<u8>)>,
|
||||||
|
|
||||||
/// The state of the connection.
|
/// The state of the connection.
|
||||||
pub state: ConnectionState,
|
state: ConnectionState,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Connection {
|
impl Connection {
|
||||||
|
|
Loading…
Reference in a new issue