Enum r2pipe::r2pipe::R2Pipe [-] [+] [src]

pub enum R2Pipe {
    Pipe(R2PipeSpawn),
    Lang(R2PipeLang),
}

Provides abstraction between the two invocation methods.

Variants

Pipe
Lang

Methods

impl R2Pipe

fn open() -> Result<R2Pipe, &'static str>

fn cmd(&mut self, cmd: &str) -> String

fn cmdj(&mut self, cmd: &str) -> Json

fn close(&mut self)

fn in_session() -> Option<(i32, i32)>

fn spawn(_name: &str) -> Result<R2Pipe, &'static str>

Creates a new R2PipeSpawn.