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§
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.