use common::net::PostError; #[derive(Debug)] pub enum Error { Network(PostError), ServerWentMad, ServerTimeout, ServerShutdown, TooManyPlayers, InvalidAuth, //TODO: InvalidAlias, Other(String), } impl From for Error { fn from(err: PostError) -> Self { Error::Network(err) } }