[][src]Struct r2pipe::r2::R2

pub struct R2 { /* fields omitted */ }

Implementations

impl R2[src]

pub fn new<T: AsRef<str>>(path: Option<T>) -> Result<R2, String>[src]

pub fn in_session() -> bool[src]

pub fn from(r2p: R2Pipe) -> R2[src]

pub fn close(&mut self)[src]

pub fn send(&mut self, cmd: &str)[src]

pub fn recv(&mut self) -> String[src]

pub fn recv_json(&mut self) -> Value[src]

pub fn flush(&mut self)[src]

Trait Implementations

impl Default for R2[src]

Auto Trait Implementations

impl RefUnwindSafe for R2

impl Send for R2

impl Sync for R2

impl Unpin for R2

impl UnwindSafe for R2

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err