Trait surf_n_term::encoder::Encoder[][src]

pub trait Encoder {
    type Item;
    type Error: From<Error>;
    fn encode<W: Write>(
        &mut self,
        out: W,
        item: Self::Item
    ) -> Result<(), Self::Error>; }

Encoder interface

Associated Types

Loading content...

Required methods

fn encode<W: Write>(
    &mut self,
    out: W,
    item: Self::Item
) -> Result<(), Self::Error>
[src]

Encode item and write result to Write object

Loading content...

Implementors

impl Encoder for TTYEncoder[src]

type Item = TerminalCommand

type Error = Error

fn encode<W: Write>(
    &mut self,
    out: W,
    cmd: Self::Item
) -> Result<(), Self::Error>
[src]

Loading content...