/// Function to create a new User.
/// Returns an instance of User Structure
Function to create a new User.
Returns an instance of User Structure
Function to create a new User . Returns an instance of User Structure
fn create_user(pseudo: String, pwd: String, socket: TcpStream) -> User {
        User {
            pseudo,
            socket,
            pwd,
            token: String::new()
        }
    }
fn create_user ( pseudo : String , pwd : String , socket : TcpStream ) -> User { User { pseudo , socket , pwd , token : String :: new ( ) } }
Function to create a new User.
Function to create a new User .
pseudo
String
pwd
String
socket
TcpStream