pub trait Message: Serialize + DeserializeOwned {
    // Provided methods
    fn read(inp: &mut impl BufRead, buf: &mut String) -> Result<Option<Self>> { ... }
    fn write(self, out: &mut impl Write) -> Result<()> { ... }
}

Provided Methods§

source

fn read(inp: &mut impl BufRead, buf: &mut String) -> Result<Option<Self>>

source

fn write(self, out: &mut impl Write) -> Result<()>

Implementors§