diff options
| -rw-r--r-- | crates/utils/tcp_connection/src/instance.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/utils/tcp_connection/src/instance.rs b/crates/utils/tcp_connection/src/instance.rs new file mode 100644 index 0000000..7f8cfce --- /dev/null +++ b/crates/utils/tcp_connection/src/instance.rs @@ -0,0 +1,11 @@ +use tokio::net::TcpStream; + +pub struct ConnectionInstance { + stream: TcpStream, +} + +impl From<TcpStream> for ConnectionInstance { + fn from(value: TcpStream) -> Self { + Self { stream: value } + } +} |
