Struct rustwide::cmd::ProcessLinesActions[][src]

pub struct ProcessLinesActions { /* fields omitted */ }

Represents actions that are available while reading live output from a process.

This will be available inside the function you provide to Command::process_lines

Implementations

impl<'a> ProcessLinesActions[src]

pub fn replace_with_lines(&mut self, new_lines: impl Iterator<Item = &'a str>)[src]

Replace last read line from output with the lines provided.

The new lines will be logged instead of the original line.

pub fn remove_line(&mut self)[src]

Remove last read line from output.

This means that the line will not be logged.

Auto Trait Implementations

impl RefUnwindSafe for ProcessLinesActions

impl Send for ProcessLinesActions

impl Sync for ProcessLinesActions

impl Unpin for ProcessLinesActions

impl UnwindSafe for ProcessLinesActions

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> Instrument for T[src]

impl<T> Instrument 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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]