[][src]Trait greetd_ipc::codec::SyncCodec

pub trait SyncCodec {
    fn read_from<T: Read>(stream: &mut T) -> Result<Self, Error>
    where
        Self: Sized
;
fn write_to<T: Write>(&self, stream: &mut T) -> Result<(), Error>; }

Reader/writer implementation over std::io::{Read,Write}.

Required methods

fn read_from<T: Read>(stream: &mut T) -> Result<Self, Error> where
    Self: Sized

fn write_to<T: Write>(&self, stream: &mut T) -> Result<(), Error>

Loading content...

Implementors

impl SyncCodec for Request[src]

impl SyncCodec for Response[src]

Loading content...