summaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-10-21 09:56:21 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-10-21 09:56:28 +0800
commitf754675aac96ac04599ec79d609e2c5b08be4561 (patch)
treea92a2e4b910593d3593744dd99bae0ba28a44c37 /src/client.rs
parentb71fae628d97ada84c533ce746d4d7980a9f6d73 (diff)
feat: ui
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client.rs b/src/client.rs
index 5edba62..457a70d 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -6,6 +6,14 @@ pub struct Client {
id: u32,
}
+impl Client {
+ pub fn new(id: u32) -> Self {
+ Self {
+ id,
+ }
+ }
+}
+
impl Default for Client {
fn default() -> Self {
Self {