summaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
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 {