Skip to content

Commit

Permalink
Change Command implementation from trait to enum
Browse files Browse the repository at this point in the history
  • Loading branch information
RayanRal committed Apr 22, 2024
1 parent d0cc82d commit 298c1d9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/server/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pub enum CommandEnum {
ExitCommand(Exit),
}

// Define concrete command types
pub struct Put {
pub key: String,
pub value: String,
Expand All @@ -21,14 +20,6 @@ pub struct Exists {

pub struct Exit {}

// impl Command for PutCommand {}
//
// impl Command for GetCommand {}
//
// impl Command for ExistsCommand {}
//
// impl Command for ExitCommand {}


pub trait CommandResponse {
fn serialize(&self) -> String;
Expand Down

0 comments on commit 298c1d9

Please sign in to comment.