[−][src]Struct ctftools::comms::Process
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,