This commit is contained in:
2026-02-18 16:47:35 -05:00
parent f9d8fccf40
commit 97fdbbf968
16 changed files with 199 additions and 156 deletions

View File

@@ -10,6 +10,7 @@ impl From<ClientMsg> for ClientMsgInst {
ClientMsg::RequestMsgs => Self::RequestMsgsV0,
ClientMsg::SendMsg(v) => Self::SendMsgV0(v),
ClientMsg::Login(v) => Self::LoginV0(v),
ClientMsg::RequestUsers(v) => Self::RequestUsersV0(v),
}
}
}
@@ -21,6 +22,7 @@ impl From<ClientMsgInst> for ClientMsg {
ClientMsgInst::RequestMsgsV0 => Self::RequestMsgs,
ClientMsgInst::SendMsgV0(v) => Self::SendMsg(v),
ClientMsgInst::LoginV0(v) => Self::Login(v),
ClientMsgInst::RequestUsersV0(v) => Self::RequestUsers(v),
}
}
}
@@ -33,6 +35,7 @@ impl From<ServerMsg> for ServerMsgInst {
ServerMsg::LoadMsgs(v) => Self::LoadMsgsV0(v),
ServerMsg::ServerError(v) => Self::ServerErrorV0(v),
ServerMsg::LoginResp(v) => Self::LoginRespV0(v),
ServerMsg::RequestUsersResp(v) => Self::RequestUsersRespV0(v),
}
}
}
@@ -45,6 +48,7 @@ impl From<ServerMsgInst> for ServerMsg {
ServerMsgInst::LoadMsgsV0(v) => Self::LoadMsgs(v),
ServerMsgInst::ServerErrorV0(v) => Self::ServerError(v),
ServerMsgInst::LoginRespV0(v) => Self::LoginResp(v),
ServerMsgInst::RequestUsersRespV0(v) => Self::RequestUsersResp(v),
}
}
}