1use std::{error, fmt}; 2 3#[derive(Debug)] 4pub enum Error { 5 ServerNotReady, 6} 7 8impl fmt::Display for Error { 9 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { 10 write!(f, "{:?}", self) 11 } 12} 13 14impl error::Error for Error {}