Skip to main content

FromSink

Trait FromSink 

Source
pub trait FromSink<T> {
    // Required method
    fn from_sink(sink: T) -> Self;
}
Expand description

Trait for converting a sink type into an output redirection.

Implemented on Redirection for each type accepted by Exec::stdout, Exec::stderr, and their Pipeline equivalents.

Required Methods§

Source

fn from_sink(sink: T) -> Self

Create the output redirection from the given sink.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§