[][src]Struct ctftools::comms::Process

pub struct Process { /* fields omitted */ }

Implementations

impl Process[src]

pub fn new(path: &str, remote: bool) -> Result<Self>[src]

pub fn get_id(&self) -> Option<u32>[src]

pub fn write(&mut self, buf: &[u8])[src]

pub fn write_str(&mut self, str: impl AsRef<str>)[src]

pub fn write_line(&mut self, str: impl AsRef<str>)[src]

pub fn read_exact(&mut self, bytes: usize) -> Vec<u8>[src]

pub fn read_lines(&mut self, lines: usize) -> String[src]

pub fn read_until(&mut self, byte: u8, inclusive: bool) -> Vec<u8>[src]

pub fn read_to_end(&mut self) -> Vec<u8>[src]

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

pub fn interactive(self) -> Result<Option<ExitStatus>>[src]

Auto Trait Implementations

impl RefUnwindSafe for Process

impl Send for Process

impl Sync for Process

impl Unpin for Process

impl UnwindSafe for Process

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.