use {Parcel, Error, ErrorKind, Settings};
use hint;
use std::io::prelude::*;
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct Unimplemented;
impl Parcel for Unimplemented
{
const TYPE_NAME: &'static str = "Unimplemented";
fn read_field(_: &mut Read,
_: &Settings,
_: &mut hint::Hints) -> Result<Self, Error> {
Err(ErrorKind::UnimplementedParcel(Self::TYPE_NAME).into())
}
fn write_field(&self,
_: &mut Write,
_: &Settings,
_: &mut hint::Hints) -> Result<(), Error> {
unimplemented!();
}
}