2019-03-03 22:02:38 +00:00
|
|
|
use common::net::PostError;
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub enum Error {
|
|
|
|
Network(PostError),
|
|
|
|
Other(String),
|
|
|
|
}
|
|
|
|
|
|
|
|
impl From<PostError> for Error {
|
2020-02-01 20:39:39 +00:00
|
|
|
fn from(err: PostError) -> Self { Error::Network(err) }
|
2019-03-03 22:02:38 +00:00
|
|
|
}
|