1 2 3 4 5 6 7 8 9
use std::io::IoError; pub type ProtobufResult<T> = Result<T, ProtobufError>; #[deriving(Show,Eq,PartialEq)] pub enum ProtobufError { IoError(IoError), WireError(String), }