diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-09-14 22:41:55 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-09-14 22:41:55 +0800 |
| commit | 04253967b5926ff636e3148be62846874c3600aa (patch) | |
| tree | e83bcdd93358476f3ebc97b836c35a95828c43a0 /crates/utils/tcp_connection/src | |
| parent | 1360ee7d91cedf3dd67123ad2fbcdf23415b3a79 (diff) | |
Add instance.rs
Diffstat (limited to 'crates/utils/tcp_connection/src')
| -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 } + } +} |
