mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
507c47e771
Former-commit-id: e9f76f7fa9dbe0c81cd4c998bf0f0b3eec9235cb
17 lines
274 B
Rust
17 lines
274 B
Rust
use common::net::PostError;
|
|
|
|
#[derive(Debug)]
|
|
pub enum Error {
|
|
Network(PostError),
|
|
ServerWentMad,
|
|
ServerTimeout,
|
|
ServerShutdown,
|
|
Other(String),
|
|
}
|
|
|
|
impl From<PostError> for Error {
|
|
fn from(err: PostError) -> Self {
|
|
Error::Network(err)
|
|
}
|
|
}
|