Trait euphony_command::Codec
source · [−]pub trait Codec: Sized {
fn encode<W: Write>(&self, output: &mut W) -> Result<()>;
fn decode<R: Read>(tag: u8, input: &mut R) -> Result<Self>;
}
pub trait Codec: Sized {
fn encode<W: Write>(&self, output: &mut W) -> Result<()>;
fn decode<R: Read>(tag: u8, input: &mut R) -> Result<Self>;
}