Trait gpgme::edit::Editor [] [src]

pub trait Editor: 'static + Send {
    type State: 'static + Send + Copy + Eq + Debug;
    fn start() -> Self::State;
    fn next_state(state: Result<Self::State>, status: EditStatus) -> Result<Self::State>;
    fn action<W: Write>(&self, state: Self::State, out: W) -> Result<()>;
}

Associated Types

type State: 'static + Send + Copy + Eq + Debug

Required Methods

fn start() -> Self::State

fn next_state(state: Result<Self::State>, status: EditStatus) -> Result<Self::State>

fn action<W: Write>(&self, state: Self::State, out: W) -> Result<()>

Implementors