pub enum PipeMode {
Passthrough,
Capture,
Consume,
}Variants§
Passthrough
Pipe to command, but ignore its output and return the original input. Used for side-effects like logging or clipboard where we still want to see the output.
Capture
Pipe to command and use its output as the new result.
Used for filters like jq or sort.
Consume
Pipe to command and suppress further output. Used when the pipe destination is the final consumer (e.g. strict clipboard only).
Trait Implementations§
impl Copy for PipeMode
impl Eq for PipeMode
impl StructuralPartialEq for PipeMode
Auto Trait Implementations§
impl Freeze for PipeMode
impl RefUnwindSafe for PipeMode
impl Send for PipeMode
impl Sync for PipeMode
impl Unpin for PipeMode
impl UnsafeUnpin for PipeMode
impl UnwindSafe for PipeMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more